Overriding a font face in a typescript
![](https://secure.gravatar.com/avatar/e07e15a8be3c4c1723f5a0397bc17424.jpg?s=120&d=mm&r=g)
ConTeXters, How can I override one or two faces in a typescript? I prefer to use the semibold face in my document wherever an emboldened face is used. I would prefer to refer to it as \bf, or style=bold. (Similarly for semibolditalic.) I currently reproduce the existing typescript in my document, substituting the semibold variants for the bold. Is it possible to use the standard typescript by reference (\usetypescript) and then override those two faces? -- Rik
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
On 02/07/2017 07:52 PM, Rik Kabel wrote:
ConTeXters,
How can I override one or two faces in a typescript?
Hi Rik, this might be what you were looking for: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] [it={TeX Gyre Cursor-Italic}, bf={TeX Gyre Adventor-Bold}, bi={TeX Gyre Termes-BoldItalic}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] Roman font {\em italic} \bf Bold font \em bold italic \stopTEXpage \stoptext It isn’t a typescript, but it may work too. Please, always include a mininal working sample. Let us know if you had something different in mind. Just in case it helps, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Rik Kabel