Am 13.08.2011 um 20:07 schrieb Mojca Miklavec:

> Hello,
> 
> CTAN has a new font package for dejavu fonts (http://ctan.org/pkg/dejavu).
> 
> The package contains original fonts (suitable for XeTeX and LuaTeX) as
> well as many tfm files.
> 
> The author is willing to add support for ConTeXt. In my opinion it
> would make more sense to support straight into the font package (like
> it is done for Gentium) as opposed to adding them to ConTeXt core, but
> I would first like to ask for opinion before sending anything to him.
> 
> If nothing else I have a question. How exactly should one split
> "type-fontname" files in third-party font packages? ConTeXt core uses
> type-one.mkii (pdftex), type-one.mkiv (empty), type-otf.mkii (xetex),
> type-otf.mkiv (luatex), but that approach doesn't work with
>    \usetypescript[type-name]
> 
> In Gentium we used \beginOLDTEX etc., but that is suboptimal.

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.

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

Wolfgang

___________________________________________________________________________________
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