[XeTeX] Bug in fontspec's \newfontfamily?

Will Robertson wspr81 at gmail.com
Mon May 25 01:59:26 CEST 2009


On 2009-05-25 00:32:59 +0930, Peter Dyballa 
<Peter_Dyballa at Web.DE> said:

> Am 24.05.2009 um 12:50 schrieb Will Robertson:
> 
>> Which font descriptor are you referring to, exactly?
> 
> Texmf.cnf uses the term "[Words of] font info for TeX."

Okay, let's try.

\documentclass{article}
\usepackage{fontspec}
\begin{document}
\long\def\1{%
  \fontspec{TeX Gyre Pagella}
  \csname f at family\endcsname\par
  \fontspec[Numbers=OldStyle]{TeX Gyre Pagella}
  \csname f at family\endcsname\par
}
\1
\end{document}

Taking a look in the log file produces:
  " 3696 words of font info for 21 fonts, out of 3000000 for 5000"

Now try

\documentclass{article}
\usepackage{fontspec}
\begin{document}
\long\def\1{%
  \fontspec{TeX Gyre Pagella}
  \csname f at family\endcsname\par
  \fontspec[Numbers=OldStyle]{TeX Gyre Pagella}
  \csname f at family\endcsname\par
}
\def\2{\1\1\1\1\1\1\1\1\1\1}
\def\3{\2\2\2\2\2\2\2\2\2\2}
\3\3\3
\end{document}

Which gives:
  " 3696 words of font info for 21 fonts, out of 3000000 for 5000"

Where's the problem?
Is this example the kind of situation you were talking about?

Will




More information about the XeTeX mailing list