font in \setuplanguage
Dear list, I have the following sample: \mainlanguage[es] \setuplanguage[agr][font=\grcface] \definefontfamily[grcface][rm][DejaVu Sans] \definefontfamily[mainface][rm][DejaVu Serif] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a {\agr β} \stopTEXpage \stoptext I cannot get the Greek fragment using another font. Is this a bug or am I missing something? Many thanks for your help, Pablo -- http://www.ousia.tk
With the font key you can apply certain font features for a different language but you can’t use it to switch to a different font. To switch to a different font for your greek texts use this method: \startsetups [greekfont] \switchtobodyfont [grcface] \stopsetups \setuplanguage[agr][setups=greekfont] Wolfgang Pablo Rodriguez schrieb am 17.09.18 um 21:30:
Dear list,
I have the following sample:
\mainlanguage[es] \setuplanguage[agr][font=\grcface] \definefontfamily[grcface][rm][DejaVu Sans] \definefontfamily[mainface][rm][DejaVu Serif] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a {\agr β} \stopTEXpage \stoptext
I cannot get the Greek fragment using another font.
Is this a bug or am I missing something?
Many thanks for your help,
Pablo
On 9/18/18 5:50 AM, Wolfgang Schuster wrote:
With the font key you can apply certain font features for a different language but you can’t use it to switch to a different font.
To switch to a different font for your greek texts use this method:
Many thanks for your reply, Wolfgang. I wonder whether it would make sense to enable a style option in \setuplanguage. Having to use setups is maybe too difficult for newcomers and style is a common option in other commands. I agree that font is handy when using different languages using the Latin script. But style would make sense when dealing with different scripts. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Wolfgang Schuster