[NTG-context] defining an alternate mono typeface
Pablo Rodriguez
oinos at gmx.es
Sun Aug 23 19:48:28 CEST 2015
Dear list,
I have the following sample:
\definefontfamily
[mainface]
[rm]
[TeX Gyre Pagella]
\definefontfamily
[mainface]
[tt]
[TeX Gyre Cursor]
\definefontfamily
[anothermono]
[tt]
[DejaVu Sans Mono]
\setupbodyfont[mainface]
\starttext
\startTEXpage[offset=1em]
\tfxx smaller text with
{\doifdefinedelse{anothermono}{\anothermono}{\tt} second mono}
\tfxx smaller text with
{\doifdefinedelse{nomono}{\nomono}{\tt} second mono}
\stopTEXpage
\stoptext
I would like to have an optional monospaced font, but when switching
typefaces, font size isn’t retained.
Is this a bug or am I missing something?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
More information about the ntg-context
mailing list