这里是使用 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}