I have the following document:
\documentclass{article}
\usepackage[adobe-garamond]{mathdesign}
\begin{document}
This is a test. 1 $1$.
\end{document}
I believe the fonts are installed correctly because this works perfectly with pdflatex and lualatex, but it fails when I use xelatex. On Windows with texlive 2013, I get the following:
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/W32TeX)
restricted \write18 enabled.
entering extended mode
(./tmp.tex
LaTeX2e <2011/06/27>
Babel <3.9g> and hyphenation patterns for 78 languages loaded.
(c:/texlive/2013/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(c:/texlive/2013/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mathdesign.sty
(c:/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2013/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdpgd.cfg)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdpgd.sty
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdfont.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdsffont.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdttfont.def)
(c:/texlive/2013/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(c:/texlive/2013/texmf-dist/tex/generic/xkeyval/xkeyval.tex))
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/ot1mdpgd.fd))
(c:/texlive/2013/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2013/texmf-dist/tex/latex/base/t1enc.def)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/t1mdpgd.fd))) (./tmp.aux
) (c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdacmr.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdbcmr.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omlmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omsmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/omxmdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdamdpgd.fd)
(c:/texlive/2013/texmf-dist/tex/latex/mathdesign/mdpgd/mdbmdpgd.fd) [1]
(./tmp.aux) )kpathsea:make_tex: Invalid fontname `<AGaramondPro-Regular.otf', co
ntains '<'
** WARNING ** Could not locate a virtual/physical font for TFM "mdwgdr8t".
** WARNING ** >> This font is mapped to a physical font "<AGaramondPro-Regular.o
tf".
** WARNING ** >> Please check if kpathsea library can find this font: <AGaramond
Pro-Regular.otf
** ERROR ** Cannot proceed without .vf or "physical" font for PDF output...
Output file removed.
Error 1 (driver return code) generating output;
file tmp.pdf may not be valid.
Transcript written on tmp.log.
Please check if kpathsea library can find this font: <AGaramond Pro-Regular.otf
. What doeskpathsea
say? Normally for text XeTeX will use system fonts but I think with your set up it is looking for TeX-installed fonts. Have you tried loadingfontspec
?<<
. You could put corrected map entries in amygaramond.map
, save it in fonts/map and then addf mygaramond.map
to your dvipdfmx.cfg.mygaramond.map
with lines like this:mdwgdr8t AGaramondPro-Regular " AutoEnc_csqf633h5kovjwhnfrdbqmo3bg ReEncodeFont " <[a_csqf63.enc <AGaramondPro-Regular.otf
(changing the << to <), addedf mygaramond.map
to dvipdfmx.cfg, ran mktexlsr and updmap. Now I get a new error after it apparently runs mktexpk and then mktexmf AGaramondPro-Regular.mf. I get mktexmf: empty or non-existent rootfile! Cannot find AGaramondPro-Regular.mf. I try ps2pk-->gsftopk-->ttf2pk-->hbf2gf. Cannot find AGaramondPro-Regular.tfm.mdwgdr7m a_rxz3ga AGaramondPro-Regular