[XeTeX] Font names that result in errors

Pander pander at users.sourceforge.net
Fri Jan 30 17:38:09 CET 2009


Pander wrote:
> Hi all,
> 
> I have found two fontnames that result in an error with XeLaTeX on an
> Ubuntu system. These are:
> 
> \fontspec{API PHONÉTIQUE}

/usr/share/fonts/truetype/ttf-linex/apiregul.ttf of the ttf-linex package


\documentclass{article}
\usepackage{fontspec}
\begin{document}
\fontspec{API PHONÉTIQUE}Blah
\end{document}


kpathsea: Illegal fontname `API PHONÉTIQUE': contains ' '
! Font \zf at basefont="API PHONÉTIQUE" at 10.0pt not loadable: Metric
(TFM) file
 or installed font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
                                                  \unless \ifzf at icu
\zf at set@...
l.4 \fontspec{API PHONÉTIQUE}
                              Blah
? x
No pages of output.

When the É is replaced with an E, this is the error:

(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))
(./test.aux)kpathsea: Illegal fontname `API PHONETIQUE': contains ' '

! Font \zf at basefont="API PHONETIQUE" at 10.0pt not loadable: Metric
(TFM) file
or installed font not found.
\zf at fontspec ...ntname \zf at suffix " at \f at size pt
                                                  \unless \ifzf at icu
\zf at set@...
l.4 \fontspec{API PHONETIQUE}
                             Blah
? x
No pages of output.


> and
> 
> \fontspec{cmr10}

/usr/share/fonts/truetype/latex-xft-fonts/cmr10.ttf of package
latex-xft-fonts


\documentclass{article}
\usepackage{fontspec}
\begin{document}
\fontspec{cmr10}Blah
\end{document}


! Undefined control sequence.
\zf at set@font at type ...onttype \zf at basefont \zf at tfm
                                                  \or \zf at atsuitrue
\ifnum \...
l.4 \fontspec{cmr10}
                    Blah
? x
No pages of output.


> However, these fonts are installed correctly, have their own .ttf and
> are available in Inkscape. Is this a bug? If yes, what is the workaround?
> 
> Regards,
> 
> Pander
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex



More information about the XeTeX mailing list