我无法让 ebgaramond 字体在 CentOS 6 下正常工作。如能提供任何关于如何找出问题的建议,我将不胜感激。
我从 CTAN 下载了 ebgaramond 字体: https://www.ctan.org/pkg/ebgaramond?lang=en 并通过将 .sty 文件和各种字体文件排序到看似合适的位置来安装文件(我将在下面附加我的 texmf.cnf 文件,以防有帮助)。
我使用这个乳胶文件进行测试:
\documentclass{article}
\usepackage{ebgaramond}
\begin{document}
Hello World!
\end{document}
并得到以下输出:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./junk.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/common/lib/texmf/tex/latex/ebgaramond/latex/ebgaramond.sty
(/usr/share/texmf/tex/generic/ifxetex/ifxetex.sty)
(/home/bkw1a/tex/ifluatex.sty) (/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf/tex/latex/xkeyval/xkeyval.tex
(/usr/share/texmf/tex/latex/xkeyval/keyval.tex)))
(/usr/share/texmf/tex/latex/base/textcomp.sty
(/usr/share/texmf/tex/latex/base/ts1enc.def))
(/usr/share/texmf/tex/latex/base/fontenc.sty)
(/common/lib/texmf/tex/latex/fontaxes/fontaxes.sty)) (./junk.aux)
(/usr/share/texmf/tex/latex/base/ts1cmr.fd)
(/common/lib/texmf/tex/latex/ebgaramond/latex/OT1EBGaramond-OsF.fd) [1{/var/lib
/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./junk.aux)kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+500/600 --dpi 500 EBGaramond12-Regular-osf-ot1
mktexpk: don't know how to create bitmap font for EBGaramond12-Regular-osf-ot1.
kpathsea: Appending font creation commands to missfont.log.
)
pdfTeX warning: pdflatex (file EBGaramond12-Regular-osf-ot1): Font EBGaramond12
-Regular-osf-ot1 at 500 not found
Output written on junk.pdf (1 page, 1049 bytes).
Transcript written on junk.log.
CTAN zip 文件中的字体文件已移至 /common/lib/texmf/fonts/enc、.../map、.../opentype、.../tfm、.../type1 和 .../vf。/common/lib/texmf 树(我认为!)正在根据我的 texmf.cnf 文件进行搜索。
在 mktexpk 命令上运行 strace(来自 missingfonts.log),我看到它正在调用:
kpsewhich EBGaramond12-Regular-osf-ot1.mf
它不返回任何内容,因为 ebgaramond zip 文件不包含任何 mf 文件。
这是 pastebin 中的 texmf.cnf 文件:https://pastebin.com/pjXfqy9q