我在两台运行 MikTeX 版本 2.9.7400 的不同电脑上编译了这个 MWE:
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
Some text.
\end{document}
在几天没有更新 MikTeX 的 PC 上编译正常。在安装了最新 MikTeX 的 PC 上,会出现错误Font \TU/lmr/m/n/10.95=[lmroman10-regular]:+tlig; at 10.95pt not loadable: metric data not found or bad. \normalsize
我对比了两者的日志文件,这是出现 bug 的日志第一行:
This is LuaHBTeX, Version 1.12.0 (MiKTeX 2.9.7400 64-bit) (format=lualatex 2020.4.26) 26 APR 2020 07:44
这是没有错误的日志的第一行:
This is LuaHBTeX, Version 1.12.0 (MiKTeX 2.9.7400 64-bit) (format=lualatex 2020.4.25) 26 APR 2020 07:49
以下是仅在触发错误时出现的日志文件的部分:
File: scrsize11pt.clo 2020/04/19 v3.30 KOMA-Script font size class option (11pt)
luaotfload | db : Font names database loaded from C:/Users/Anne/AppData/Local/Mi
KTeX/2.9/luatex-cache/generic-dev/names/luaotfload-names.luc
! Font \TU/lmr/m/n/10.95=[lmroman10-regular]:+tlig; at 10.95pt not loadable: met
ric data not found or bad.
<to be read again>
relax
l.112 \normalsize
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
) (C:/Users/Anne/AppData/Roaming/MiKTeX/2.9/tex/latex/koma-script/typearea.sty
和
! Arithmetic overflow.
\\typearea ...by100 \divide \ta@temp by\@tempdima
\@tempcnta =\ta@temp \ifnu...
l.1738 \typearea[current]{current}
I can't carry out that multiplication or division,
since the result is out of range.
Package typearea Warning: Bad type area settings!
(typearea) The detected line width is about 27410792%
(typearea) larger than the heuristically estimated maximum
(typearea) limit of typographical good line width.
(typearea) You should e.g. decrease DIV, increase fontsize
(typearea) or change papersize.
Package: fontenc 2020/02/11 v2.0o Standard LaTeX package
和
("C:/MiKTeX 2.9/tex/latex/fontspec/fontspec.cfg")
! Font \TU/lmr/bx/n/10.95=[lmroman10-bold]:+tlig; at 10.95pt not loadable: metri
c data not found or bad.
<to be read again>
relax
l.3955 \strongfontdeclare{ \bfseries }
I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.
))
和
No file 20200426_luaotfload_bug.aux.
我想提交错误报告,但我不知道在哪里提交以及如何提交。与此同时,有没有办法安装以前的版本luaotfload
?