
我在兩台運行 MikTeX 版本 2.9.7400 的不同 PC 上編譯了此 MWE:
\documentclass{scrreprt}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\begin{document}
Some text.
\end{document}
它在 MikTeX 幾天沒有更新的 PC 上編譯得很好。在最新的 MikTeX 上,它會產生錯誤Font \TU/lmr/m/n/10.95=[lmroman10-regular]:+tlig; at 10.95pt not loadable: metric data not found or bad. \normalsize
我比較了兩者之間的日誌檔案。這是包含錯誤的日誌的第一行:
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
?