由于 Windows 系统安装的 Linux Libertine/Biolinum Open Type 字体存在一些问题,我决定使用以下包在 XeLaTeX 中定义它们相对于不同字体形状的用法fontspec
:
\documentclass{artcl}
\usepackage{fontspec}
\newfontfamily\LinuxLibertine[ Path = fonts/,
BoldFont = LinLibertine_RB.otf,
ItalicFont = LinLibertine_RI.otf,
BoldItalicFont = LinLibertine_RBI.otf,
SlantedFont = LinLibertine_aRL.otf,
BoldSlantedFont = LinLibertine_aBL.otf,
SmallCapsFont = LinLibertine_aS.otf,
Mapping = tex-text]{LinLibertine_R.otf}
\setmainfont[ Path = fonts/,
BoldFont = LinLibertine_RB.otf,
ItalicFont = LinLibertine_RI.otf,
BoldItalicFont = LinLibertine_RBI.otf,
SlantedFont = LinLibertine_aRL.otf,
BoldSlantedFont = LinLibertine_aBL.otf,
SmallCapsFont = LinLibertine_aS.otf,
Mapping = tex-text]{LinLibertine_R.otf}
\begin{document}
Some text here...
\end{document}
是否有可能在 \setmainfont 命令中使用先前定义的字体系列,例如:
\setmainfont{\LinuxLibertine}