Adobe Garamond Pro and XeLaTeX Guys, I am trying to use opentype fonts using XeLaTeX. Now when, I am trying to use Adobe Garamond Pro. It says
! Font
\zf@basefont=Garamond
at 10.0pt not loadable: Metric (TFM) file or installed font not found.
My operating system is Fedora 12. The /usr/share/fonts contain both folder name linux-libertine and Garamond in which it contains the .otf files. When of use Linux Libertine it is fine with Latex but Adobe Garamond Pro shows error. See the code below:
For Linux Libertine
\documentclass[10pt]{book}
\usepackage{xltxtra}
\setmainfont{Linux Libertine} % could be any Unicode font
\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}
Output:
Now using Garamond - Code
\documentclass[10pt]{book}
\usepackage{xltxtra}
\setmainfont{Garamond} % could be any Unicode font
%\setmainfont{Adobe Garamond Pro} % could be any Unicode font
%\setmainfont{AGaramond Pro} % could be any Unicode font
%I have used all possible combination.
\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}
Output is a BLANK File
The log says something like this:
(/usr/share/texmf/tex/latex/base/fixltx2e.sty))
! Font \zf@basefont=Garamond at 10.0pt not loadable: Metric (TFM) file or insta
lled font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt
\unless \ifzf@icu \zf@set@...
l.3 \setmainfont{Garamond}
% could be any Unicode font
?
As you can see, I have tried every possible way to name the font.
So what should I do to fix this serious issues?
P.S. Both fonts are installed in my computer. Verification:
ls -R /usr/share/fonts/linux-libertine/ /usr/share/fonts/linux-libertine/: LinBiolinumB.ttf LinLibertineBI.ttf LinLibertineC.ttf LinLibertine.ttf LinBiolinum.ttf LinLibertineB.ttf LinLibertineI.ttf
ls -R /usr/share/fonts/Garamond/
/usr/share/fonts/Garamond/:
AGaramondPro-BoldItalic.otf AGaramondPro-Regular.otf
AGaramondPro-Bold.otf AGaramondPro-SemiboldItalic.otf
AGaramondPro-Italic.otf AGaramondPro-Semibold.otf