![miktex-makemf 找不到字体的 .cfg 或度量文件 - 我在哪里可以得到这些?](https://linux22.com/image/418718/miktex-makemf%20%E6%89%BE%E4%B8%8D%E5%88%B0%E5%AD%97%E4%BD%93%E7%9A%84%20.cfg%20%E6%88%96%E5%BA%A6%E9%87%8F%E6%96%87%E4%BB%B6%20-%20%E6%88%91%E5%9C%A8%E5%93%AA%E9%87%8C%E5%8F%AF%E4%BB%A5%E5%BE%97%E5%88%B0%E8%BF%99%E4%BA%9B%EF%BC%9F.png)
我尝试从 .ttf 文件手动安装字体,我们称之为XYZ,在 pdfLaTeX 中(LuaLatex 等不是一个选项;我试过但无法让它工作,因为它导致了太多的包问题并弄乱了所有其他字体)。
我按照给出的说明这里。tex
我fonts
使用西弗吉尼亚海岸因为我在 Windows 10 上工作。autoinst
我创建了一个包含树的目录autoinst_output
,我将其复制到用户定义的 texmf 目录中。然后我通过 MikTeX 控制台将此目录添加到 MikTeX(它列出的目的 = 通用,属性 = 用户)。这棵树内似乎没有任何 .cfg 文件。
在安装过程中,我还发现这个答案很有帮助。我无数次以不同的顺序更新了文件名数据库和字体映射文件。
其中一个问题还提到本网站。上面说可以通过 cmd 终端测试字体是否有效。我输入了:
$ tex testfont
This is TeX, Version 3.14159265 (MiKTeX 20.6.29)
("... testfont.tex location ...")
Name of the font to test = XYZ
Running miktex-makemf.exe...
Sorry, but miktex-makemf did not succeed.
The log file hopfully contains the information to get MiKTeX going again:
... path to logfile ...
Couldn't open `XYZ.cfg'
hbf2gf (CJK ver. 4.8.4)
Sorry, but miktex-makemf did not succeed.
The log file hopfully contains the information to get MiKTeX going again:
... path to logfile ...
! Font \testfont=XYZ not loadable: Metric (TFM) file not found.
<to be read again>
... TeX code of the testfont.tex file ...
日志文件内容如下
FATAL miktex-makemf - 没有字体 XYZ 的创建规则。FATAL miktex-makemf - 没有字体 XYZ 的创建规则。FATAL miktex-makemf - 信息:FATAL miktex-makemf
- 来源:
FATAL miktex-makemf - 行:0
这似乎也与这个问题和答案如果我进入目录 texmf-root\tfm\lcdftools\XYZ如果找到很多文件,例如
XYZ-lf-ly1.tfm
...
XYZ-tlf-ly1.tfm
ETC...
这些和问题有何关系?
请注意,这也可能解决这个问题我问。