defining an alternate mono typeface
![](https://secure.gravatar.com/avatar/5955e8e90611e77ccbfc7721b6112027.jpg?s=120&d=mm&r=g)
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
participants (1)
-
Pablo Rodriguez