Hi, I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the way. Essentially what I currently want to do is to emulate paragraph styles found in other software, e.g. Scribus. After several hours of research all I have in my head is a complete mess of conflicting approaches, so I’d like to get some sane present-day advice. :-) Say I wanted to achieve this (as a rough example, the point is mixing weights and OpenType features in different contexts): Heading 1: Source Serif Semibold, smcp=yes, 12% letter-spacing Heading 2: Source Serif Semibold Emphasis: Source Serif Regular, smcp=yes, 8% letter-spacing What is the most straightforward way should I load the fonts and set the ‘styles’? Thanks!
On 11/26/2019 8:00 PM, Juraj Fiala wrote:
Hi,
I’m trying to learn ConTeXt, but I’m discovering a few hurdles along the way. Essentially what I currently want to do is to emulate paragraph styles found in other software, e.g. Scribus. After several hours of research all I have in my head is a complete mess of conflicting approaches, so I’d like to get some sane present-day advice. :-)
Say I wanted to achieve this (as a rough example, the point is mixing weights and OpenType features in different contexts):
Heading 1: Source Serif Semibold, smcp=yes, 12% letter-spacing Heading 2: Source Serif Semibold Emphasis: Source Serif Regular, smcp=yes, 8% letter-spacing
What is the most straightforward way should I load the fonts and set the ‘styles’? Something:
\definefontfamily[mainface][serif][Source Serif Pro] \setupbodyfont[mainface] \definecharacterkerning [LittleMoreA] [factor=0.12] \definecharacterkerning [LittleMoreB] [factor=0.08] \setuphead [chapter] [distance=2em, style=\tfd, textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}] \definehighlight [emphasis] [style={\setcharacterkerning[LittleMoreA]}] \starttext \startchapter[title=Something Small] test \emphasis {test} test \stopchapter but the font has no smallcaps Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi, thanks for the reply!
On Wednesday 27. November 2019 10:08, Hans Hagen
\setuphead [chapter] [distance=2em, style=\tfd, textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}]
This doesn’t use Semibold however. Do I understand correctly that I need to make a Typescript for that to work?
but the font has no smallcaps
Sure it does, and very nice ones too. ^_^ Anyway, I _think_ I’m slowly finding my way around. Cheers. Juraj
On 11/27/19 2:52 PM, Juraj Fiala wrote:
Hi, thanks for the reply!
On Wednesday 27. November 2019 10:08, Hans Hagen
wrote: \setuphead [chapter] [distance=2em, style=\tfd, textstyle={\smallcaps\setcharacterkerning[LittleMoreA]}]
This doesn’t use Semibold however. Do I understand correctly that I need to make a Typescript for that to work?
Hi Juraj, you don’t need to make a typescript. Just add "[bf=style:semibold]" to the "\definefontfamily" command and invoke it with "style=\bfd". Of course, the first option replaces bold wit the semibold font. Just in case it helps, Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Juraj Fiala
-
Pablo Rodriguez