! 字体 \TU/lmr/m/n/12=[lmroman12-regular]:+tlig; 12pt 无法加载:未找到度量数据或数据错误

! 字体 \TU/lmr/m/n/12=[lmroman12-regular]:+tlig; 12pt 无法加载:未找到度量数据或数据错误

我目前正在使用 MikTeX 2.9.6809 和 LuaTeX 1.07.0,但我无法在 LuaLaTeX 中编译(但我可以在 XeLaTeX 和 pdfTex 中编译)。

遇到此错误后,我完全更新了 MikTeX,但问题仍然没有解决。甚至最基本的 Hello World 也无法编译。

\documentclass[a4paper,12pt]{report}

\begin{document}
Hello World
\end{document}

我遗漏了什么可能会导致此错误?

使用 12pt :

(D:/Users/xxx.xxx/Documents/Software/MikTeX/texmfs/install/tex/latex/base
/size12.clo
! Font \TU/lmr/m/n/12=[lmroman12-regular]:+tlig; at 12pt not loadable: metric d
ata not found or bad.
<to be read again> 
relax 
l.54 \normalsize

使用 11 pt:

(D:/Users/xxx.xxx/Documents/Software/MikTeX/texmfs/install/tex/latex/base
/size11.clo
! Font \TU/lmr/m/n/10.95=[lmroman10-regular]:+tlig; at 10.95pt not loadable: me
tric data not found or bad.
<to be read again> 
relax 
l.54 \normalsize

使用 10pt(未在文档类中指定字体大小)

(D:/Users/xxx.xxx/Documents/Software/MikTeX/texmfs/install/tex/latex/base
/size10.clo
! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric d
ata not found or bad.
<to be read again> 
relax 
l.54 \normalsize

提前致谢

编辑:我发现的唯一相关问题! 字体 \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; 10pt 处无法加载不会有帮助,因为它使用的是 TeX Live

答案1

对我来说,解决方法是运行:

luaotfload-tool --update --force

正如这里建议的:https://github.com/gregorio-project/gregorio/issues/1458#issuecomment-499215969

答案2

使用当前版本的 MiKTeX,我可以进行编译而不会出现错误或警告,请参阅文件.log

This is LuaTeX, Version 1.09.0 (MiKTeX 2.9.6880 64-bit)  (format=lualatex 2018.11.18)  19 DEC 2018 13:48
 restricted system commands enabled.
**449614.tex
(./449614.tex
LaTeX2e <2018-04-01> patch level 5
Lua module: luaotfload-main 2018-10-28 2.93 luaotfload entry point
Lua module: luaotfload-init 2018-10-28 2.93 luaotfload submodule / initializatio
n
Lua module: lualibs 2018-10-18 2.61 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2018-10-18 2.61 ConTeXt Lua libraries -- extended c
ollection.
Lua module: luaotfload-log 2018-10-28 2.93 luaotfload submodule / logging
Lua module: luaotfload-parsers 2018-10-28 2.93 luaotfload submodule / filelist
Lua module: luaotfload-configuration 2018-10-28 2.93 luaotfload submodule / conf
ig file reader
luaotfload | conf : Root cache directory is C:/Users/Internet/AppData/Local/MiKT
eX/2.9/luatex-cache/generic/names.
luaotfload | init : Loading fontloader “fontloader-2018-10-28.lua” from kpse
-resolved path “C:/Program Files/MiKTeX 2.9/tex/luatex/luaotfload/fontloader-2
018-10-28.lua”.
Lua-only attribute luaotfload@state = 1
Lua-only attribute luaotfload@noligature = 2
Lua-only attribute luaotfload@syllabe = 3
luaotfload | init : Context OpenType loader version “3.106”
Inserting `luaotfload.node_processor' at position 1 in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' at position 1 in `hpack_filter'.
Lua module: luaotfload-loaders 2018-10-28 2.93 luaotfload submodule / callback h
andling
Inserting `luaotfload.define_font' at position 1 in `define_font'.
Lua module: luaotfload-database 2018-10-28 2.93 luaotfload submodule / database
Lua module: luaotfload-colors 2018-10-28 2.93 luaotfload submodule / color
Lua-only attribute luaotfload_color_attribute = 4
Lua module: luaotfload-resolvers 2018-10-28 2.93 luaotfload submodule / resolver
s
luaotfload | conf : Root cache directory is C:/Users/Internet/AppData/Local/MiKT
eX/2.9/luatex-cache/generic/names.
Lua module: luaotfload-features 2018-10-28 2.93 luaotfload submodule / features
Lua module: luaotfload-letterspace 2018-10-28 2.93 luaotfload submodule / color
Lua module: luaotfload-auxiliary 2018-10-28 2.93 luaotfload submodule / auxiliar
y functions
Inserting `luaotfload.aux.set_sscale_dimens' at position 1 in `luaotfload.patch_
font'.
Inserting `luaotfload.aux.patch_cambria_domh' at position 2 in `luaotfload.patch
_font'.
Inserting `luaotfload.aux.fixup_fontdata' at position 1 in `luaotfload.patch_fon
t_unsafe'.
Inserting `luaotfload.aux.set_capheight' at position 3 in `luaotfload.patch_font
'.
Inserting `luaotfload.rewrite_fontname' at position 4 in `luaotfload.patch_font'
.
luaotfload | main : initialization completed in 0.688 seconds
("C:/Program Files/MiKTeX 2.9/tex/latex/base/report.cls"
Document Class: report 2014/09/29 v1.4h Standard LaTeX document class
("C:/Program Files/MiKTeX 2.9/tex/latex/base/size12.clo"
File: size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from C:/Users/Internet/AppData/Loca
l/MiKTeX/2.9/luatex-cache/generic/names/luaotfload-names.luc)
\c@part=\count80
\c@chapter=\count81
\c@section=\count82
\c@subsection=\count83
\c@subsubsection=\count84
\c@paragraph=\count85
\c@subparagraph=\count86
\c@figure=\count87
\c@table=\count88
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (./449614.aux)
\openout1 = 449614.aux

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.

[1

{C:/Users/Internet/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]
(./449614.aux))

Here is how much of LuaTeX's memory you used:
 239 strings out of 494324
 100000,89155 words of node,token memory allocated
 382 words of node memory still in use:
   2 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 45 glue_spec,
 4 attribute_list, 1 write nodes
   avail lists: 2:15,3:2,4:1,5:22,6:1,7:24,9:7
 4535 multiletter control sequences out of 65536+200000
 15 fonts using 723495 bytes
 22i,4n,20p,132b,121s stack positions out of 5000i,500n,10000p,200000b,50000s
<c:/program files/miktex 2.9/fonts/opentype/public/lm/lmroman12-regular.otf>
Output written on 449614.pdf (1 page, 3825 bytes).

PDF statistics: 13 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 100000000)

前段时间 MiKTeX、LuaLaTeX 出现了问题,luaotfloadluaotfloadbug。现在的版本没有这个 bug...

相关内容