Changes

Jump to navigation Jump to search
no edit summary
< [[XeTeX]] | [[Fonts]] >
Fonts get special treatment in [[XeTeX]]. By supporting a rich, within-TeX means of font specification, one avoids the usual difficulties associated with the TeX font mess: no dealing with map files, encodings, Karl Berry naming schemes, tfms, or virtual fonts. This page describes the various typescripts introduced with [[source:type-otf.tex|type-otf.tex]] (shared with LuaTeX, up-to-date) and [[source:type-xtx.tex|type-xtx.tex]] (XeTeX specific - might need a revision).
==Wildcard typescripts==
XeTeX offers some nice features in terms of automatically finding related fonts in a family, namely the italic, bold, and bolditalic alternatives. To take advantage of that, there's a set of wildcard typescripts that take an arbitrary Macintosh font name as input, and provide as many of the alternatives it can find. To set these typescripts (and the calling conventions) apart from the familiar ones, the typescripts are identified with <tt>Xserif</tt>, <tt>Xsans</tt>, and <tt>Xmono</tt>. As they use some specific XeTeX features, they all use the <tt>uc</tt> encoding. [http://www.writers.ph/ freelance writing]
To call the typescripts, it's most convenient to define a typeface that uses these features. The named font slot should contain the display name of the Regular alternative (not the family name) of the font in question. The typefaces are callable with four, five, or six arguments:
(Sample from [[http://archive.contextgarden.net/message/20080120.125423.babb9aea.en.html this thread]].)
[[Category:FontsOld Content]]

Navigation menu