[XeTeX] XeTeX cannot find very common fonts in the system

Herbert Schulz herbs at wideopenwest.com
Thu Dec 14 20:35:37 CET 2006


On Dec 14, 2006, at 11:07 AM, André Bellaïche wrote:

> These simple commands
>
> \documentclass{book}
> \usepackage{osxfonts}
> %\renewcommand{\encodingdefault}{U}
> \NewOSXFontFamily{nff}{Garamond}
> \renewcommand{\rmdefault}{nff}
>
> do not work. The error message is :
>
> ! Font \testfont=Garamondat10pt not loadable: Metric (TFM) file or
> installed fo
> nt not found.
>
> The same happens with Adobe Garamond, Times, Times Roman, Helvetica,
> Utopia, with and without the command "\renewcommand 
> {\encodingdefault}{U}
>

Howdy,

I tried

%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage{fontspec,xunicode,xltxtra}
\setromanfont[Mapping=tex-text, Scale=MatchLowercase]{Garamond}
\begin{document}
\noindent some text (should be Garamond)\\
\textsf{some sans: text (latin modern by default)}\\
maths: \(x^{2}+y^{2}=z^{2}\)\\
\emph{some emphasized text (should be Garamond)}\\
\end{document}

and it looks ok.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)




More information about the XeTeX mailing list