![我的文档使用哪种虚拟字体?](https://linux22.com/image/352815/%E6%88%91%E7%9A%84%E6%96%87%E6%A1%A3%E4%BD%BF%E7%94%A8%E5%93%AA%E7%A7%8D%E8%99%9A%E6%8B%9F%E5%AD%97%E4%BD%93%EF%BC%9F.png)
我想对虚拟字体的字距进行一些小的更改。有关此操作的说明(在各种 SE 线程等中)似乎相当简单,但有一点除外:我如何才能准确找到需要更改的字体?
例如,假设我pdflatex
在 TexLive 2016 中运行这个 MWE:
\documentclass{article}
\usepackage[p,space=1.2]{erewhon}
\begin{document}
123
\end{document}
如果我查看C:/texlive/2016/textmf-dist/fonts/vs/public/erewhon
,我会看到 156 个.vf
文件。文件名排除了其中大部分可能的文件,但大约有 20 个 Erewhon-Regular-*.vf
可能是我正在使用的。
如果文件中有一些信息.log
可以回答这个问题,我会迷失方向去寻找它:
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1enc.def
File: ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
)
LaTeX Info: Redefining \oldstylenums on input line 334.
Package textcomp Info: Setting cmr sub-encoding to TS1/0 on input line 349.
Package textcomp Info: Setting cmss sub-encoding to TS1/0 on input line 350.
...
Package textcomp Info: Setting ptmx sub-encoding to TS1/4 on input line 408.
Package textcomp Info: Setting ptmj sub-encoding to TS1/4 on input line 409.
)
(c:/texlive/2016/texmf-dist/tex/latex/mweights/mweights.sty
Package: mweights 2016/12/09 (Bob Tennent) Support package for multiple-weight
font packages.
LaTeX Info: Redefining \bfseries on input line 21.
LaTeX Info: Redefining \mdseries on input line 29.
LaTeX Info: Redefining \rmfamily on input line 37.
LaTeX Info: Redefining \sffamily on input line 56.
LaTeX Info: Redefining \ttfamily on input line 75.
)
(c:/texlive/2016/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2017/01/02 v2.4 e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count87
)
(c:/texlive/2016/texmf-dist/tex/latex/fontaxes/fontaxes.sty
Package: fontaxes 2014/03/23 v1.0d Font selection axes
LaTeX Info: Redefining \upshape on input line 29.
LaTeX Info: Redefining \itshape on input line 31.
LaTeX Info: Redefining \slshape on input line 33.
LaTeX Info: Redefining \scshape on input line 37.
)
(c:/texlive/2016/texmf-dist/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2014/12/03 v2.7a package option processing (HA)
(c:/texlive/2016/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2016/texmf-dist/tex/generic/xkeyval/xkvutils.tex
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
(c:/texlive/2016/texmf-dist/tex/generic/xkeyval/keyval.tex))
\XKV@depth=\count88
File: xkeyval.tex 2014/12/03 v2.7a key=value parser (HA)
))
LaTeX Font Info: Try loading font information for T1+erewhon-LF on input lin
e 142.
(c:/texlive/2016/texmf-dist/tex/latex/erewhon/t1erewhon-lf.fd
File: T1erewhon-LF.fd 2014/09/11 (autoinst) Font definitions for T1/erewhon-LF.
)
LaTeX Font Info: Font shape `T1/erewhon-LF/m/n' will be
(Font) scaled to size 10.0pt on input line 142.
)
No file test.aux.
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for LY1/ptm/m/n on input line 4.
LaTeX Font Info: Try loading font information for LY1+ptm on input line 4.
(c:/texlive/2016/texmf-dist/tex/latex/ly1/ly1ptm.fd
File: ly1ptm.fd 2001/02/01 font definitions for LY1/ptm using Berry names.
)
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 4.
LaTeX Font Info: Try loading font information for TS1+cmr on input line 4.
(c:/texlive/2016/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: ... okay on input line 4.
\c@mv@tabular=\count89
\c@mv@boldtabular=\count90
[1
{c:/texlive/2016/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./test.aux) )
Here is how much of TeX's memory you used:
1943 strings out of 493013
26914 string characters out of 6136993
71052 words of memory out of 5000000
5514 multiletter control sequences out of 15000+600000
7932 words of font info for 17 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
28i,4n,34p,800b,113s stack positions out of 5000i,500n,10000p,200000b,80000s
{
c:/texlive/2016/texmf-dist/fonts/enc/dvips/erewhon/zut1_n7tjt2.enc}<c:/texlive/
2016/texmf-dist/fonts/type1/public/erewhon/Erewhon-Regular.pfb>
答案1
将示例另存为test.tex
并运行
pdflatex -recorder test && grep '\.vf$' test.fls
你会得到
INPUT /usr/local/texlive/2016/texmf-dist/fonts/vf/public/erewhon/Erewhon-Regular-lf-t1.vf
在终端上。
这是针对基于 Unix 的系统;我相信 Windows 上也存在类似的技术。无论如何,创建的test.fls
文件将包含所需的信息。