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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to