On 14-8-2011 2:30, Mojca Miklavec wrote:
On Sun, Aug 14, 2011 at 09:59, Wolfgang Schuster wrote:
For MkIV you can put the definition in “type-<font>.mkiv” and when put “\setupbodyfont[<font>]” in your document ConTeXt loads the file without the need for \usetypescriptfile.
Thank you. That is very useful to know.
When you want to support XeTeX and pdfTeX at the same time you have to use \beginNEWTEX and \beginOLDTEX when you want both of them in the same file but you can also put both in separate files where is loaded from type-<font>.mkii
\ifnum\texengine\pdftexengine \usetypescriptfile[type-<font>-pdftex] \else \usetypescriptfile[type-<font>-xetex] \fi
Thank you. So no general guidelines about the desired approach exist? (I'm thinking about type-one-<font>.mkii& type-otf-<font>.mkii.)
Speaking for mkiv, some run time loading modules new get names like *-imp-*.mkiv in order to avoid clashes with core (code) modules. At some point I will probably rename some of the type-*.mkiv files (after all imp is already supported there). Also, some font definitions might move to lfg files (and some already are). btw, dejavu is already defined in mkiv Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------