![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
And how can I \definefont so that \em or \emph works the same as in bodyfont?
Or, the other way round, how must I \definehighlight[emph][style=italic] so that it works in all sizes?
-----
\setupbodyfont[rm,12pt]
\definefont[TitleFont][SansBold*default sa 3]
\setuphead[chapter][style=\TitleFont,page=no]
\definehighlight[emph][style=italic]
\starttext
\chapter{My \emph{special} chapter} % no font change
\input tufte
\emph{\input knuth.tex }
\chapter{My {\em oldfashioned} chapter} % slanted body font
\input tufte
{\em\input knuth.tex }
\stoptext
-----
Am 2019-01-22 um 19:57 schrieb Alan Braslau
On Tue, 22 Jan 2019 19:39:05 +0100 Hans Hagen
wrote: one can do
\definefont[MyTitleFont][file:myfont.ttf*default sa 3]
\setuphead[chapter][style=\MyTitlefont]
Thank you
\definefont[MyFont][file:myfont.ttf]
\scale[width=.5\textwidth]{\MyFont My Font!}
can be used for example in a header or footer element, and this is minimal and simple. What are the roles of "*default" and "sa 3" as these appear to be unnecessary?
*default activates the default set of OpenType features. sa 3 is the font size factor. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD