安装 garamondx 字体

安装 garamondx 字体

我正在尝试安装 garamondx 字体。以下安装说明,一切正常:

sudo mkdir -p /usr/local/texlive/texmf-local/web2c
sudo /bin/cp -Rfp * /usr/local/texlive/texmf-local
sudo echo Map zgm.map >> /usr/local/texlive/texmf-local/web2c/updmap.cfg
sudo mktexlsr

直到我到达这一步:

sudo -H updmap-sys

这导致:

updmap is using the following updmap.cfg files (in precedence order):
  /usr/local/texlive/2013/../texmf-local/web2c/updmap.cfg
  /usr/local/texlive/2013/texmf-dist/web2c/updmap.cfg
updmap is using the following updmap.cfg file for writing changes:
  /usr/local/texlive/2013/texmf-config/web2c/updmap.cfg
dvips output dir: "/usr/local/texlive/2013/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/usr/local/texlive/2013/texmf var/fonts/map/dvipdfmx/updmap"
pxdvi output dir: "/usr/local/texlive/2013/texmf-var/fonts/map/pxdvi/updmap"

ERROR:  The following map file(s) couldn't be found:
        zgm.map (in /usr/local/texlive/2013/../texmf-local/web2c/updmap.cfg)

        Did you run mktexlsr?

        You can disable non-existent map entries using the option
          --syncwithtrees.

做过运行 mktexlsr,结果显示:

mktexlsr: Updating /usr/local/texlive/2013/../texmf-local/ls-R... 
mktexlsr: Updating /usr/local/texlive/2013/texmf-config/ls-R... 
mktexlsr: Updating /usr/local/texlive/2013/texmf-dist/ls-R... 
mktexlsr: Updating /usr/local/texlive/2013/texmf-var/ls-R... 
mktexlsr: Done.

地图文件

/usr/local/texlive/2013/../texmf-local/web2c/updmap.cfg

包含:

Map zgm.map

我做错了什么?正如您从上面看到的,我使用 Texlive 2013(在 OS X 上)。

附言:我发现另一个人fr.comp.text.tex 上也有同样的问题,但我的法语已经不足以解决技术问题了……

更新:以下是对 Ulrike Fischer 的第二条评论的回应:

[…]

{/usr/local/texlive/2013/texmf-var/fonts/map/pdftex/updmap/pdftex.map}

pdfTeX warning: pdflatex (file zgm.map): cannot open font map file
(/usr/local/texlive/2013/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(/usr/local/texlive/2013/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.
)) (./garamondx.sty
Package: garamondx 2013/09/30 GaramondNo8 with expert features (Michael Sharpe)

[…]

(/usr/local/texlive/2013/../texmf-local/tex/t1zgmx.fd
File: t1zgmx.fd 2012/10/29 Fontinst v1.933 font definitions for T1/zgmx.
)
! Font T1/zgmx/m/n/10=T1-zgm-r-lf at 10.0pt not loadable: Metric (TFM) file not
 found.
<to be read again>
                   relax
l.118 \normalfont

? x

答案1

根据 garamondx 维护者 Michael Sharpe 的建议,我使用了获取非免费字体脚本,解决了该问题。

相关内容