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 -----------------------------------------------------------------