[XeTeX] Problem with defining BoldFont

Hooman Javidnia hooman.javidnia at gmail.com
Tue Apr 21 00:27:34 CEST 2009


Hello list,
Here is a minimal example of what I have been trying to do and it
doesn't work. All I need is to replace the bold face of the main font
with SemiBold variant. I get an error message than I can't decipher. I
have tried different things according to fontspec manual, but none
worked for me.

I would appreciate if somebody can tell me what is going wrong in here:

\documentclass{article}
\usepackage[no-math]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase}
\setmainfont[BoldFont={* SemiBold}]{Arno Pro}
\setsansfont{Hypatia Sans Pro}
% \newfontfamily\arnosemibold[BoldFont={* SemiBold}]{Arno Pro}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
\end{document}

I get a lot of error messages for this small file. The first two
errors in the log file are as follows:

./untitled.tex:7: Font \@tempfontb="Arno Pro SemiBold/ICU" at 10.0pt not loadab
le: Metric (TFM) file or installed font not found.
\\zf at make@font at shapes ...f at suffix " at \f at size pt
                                                  \edef \@tempb {\fontname \...
l.7 \setmainfont[BoldFont={* SemiBold}]{Arno Pro}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

./untitled.tex:7: Arithmetic overflow.
<recently read> \calc at denominator

l.7 \setmainfont[BoldFont={* SemiBold}]{Arno Pro}

Best,

Hooman Javidnia


More information about the XeTeX mailing list