![LuaTeX 和 XeTeX 报告 Libertinus 字体中缺少的字符](https://linux22.com/image/338610/LuaTeX%20%E5%92%8C%20XeTeX%20%E6%8A%A5%E5%91%8A%20Libertinus%20%E5%AD%97%E4%BD%93%E4%B8%AD%E7%BC%BA%E5%B0%91%E7%9A%84%E5%AD%97%E7%AC%A6.png)
这里是使用 Libertinus Serif 字体的 MWE,它具有输入的字形,但 XeLaTeX 和 LuaLaTeX 都报告:“缺少字符:Libertinus Serif 字体中没有 ➌”:
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\begin{document}
This char is missing: (^^^^278d)\par
This is also missing: (^^^^278c)\par
This char is not: (^^^^24ea)\par
\end{document}
我的输出是:
我的日志文件报告:
Missing character: There is no ➍ in font Libertinus Serif/OT:script=latn;language=DFLT;mapping=tex-text;!
Missing character: There is no ➌ in font Libertinus Serif/OT:script=latn;language=DFLT;mapping=tex-text;!
但是,正如您在下面看到的,这些字形存在于 Libertinus Serif 字体中:
知道哪里出了问题吗?
答案1
使用
\documentclass{minimal}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\newfontfamily\LibSans{Libertinus Sans}
\begin{document}
This char is present: (^^^^2779)\par
This is also present: (^^^^277a)\par
This char is present: (^^^^24ea)
\LibSans
This char is present: (^^^^2779)\par
This is also present: (^^^^277a)\par
This char is present: (^^^^24ea)
\end{document}