At 02:48 PM 11/11/2002 -0800, Idris S Hamid wrote:
In Gamma (and perhaps in regular ConTeXt as well but I have no other fonts to test there) \setupbodyfont[cmr] does not seem to work/behaves strangely:
-------------cm-test.tex-------------- \input m-gamma.tex \input type-omg.tex
\setupbodyfont[cmr,14pt] %\setupbodyfont[omlgc, 14.4pt]
This is a test
\switchtobodyfont[omlgc, 14.4pt] %\switchtobodyfont[cmr,14pt]
This is a test
\switchtobodyfont[cmr, 14pt] %\switchtobodyfont[omlgc, 14.4pt]
This is a test
\stoptext
in my type-omg i see no omlgc defined, so \setupbodyfont[cmr,14pt] \setupbodyfont[cmr, 14pt] This is a test \fontname\font \par \switchtobodyfont[omlgc, 14.4pt] This is a test \fontname\font \par \switchtobodyfont[cmr, 14pt] This is a test \fontname\font \par gives me expected behavior. When mixing fonts, esp with similar names, and esp in an ungrouped way, it's best to use the typeface mechanism, since it provides a namespace, while the less clever mechanism overloads definitions (keep in mind that there are some limitations to the amount of fonts and memory, so there are some trade off's)
---------------------------
Results:
First line in cmr14, second line in omlgc14.4 (OK so far)
Third line in omlgc14 (This is wrong!)
this is probably because you now have Serif redefined to an oml font, and since you don't use grouping, there is no way that tex can go back to the already lost definitions (that is: in typefaces we use a namespace, so there it's no problem). you may try (1) grouping or (2) \switchtobodyfont[reset] in between, but mixing fonts this way (not using typefaces) can be painfully slow Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------