我想使用openoffice中文字体,例如AR PL SungtiL GB,但是xelatex告诉我它是一个无效的名称(如下面所示)。字体名称似乎有空格,所以它不认识它?我该怎么绕过这件事?
(/usr/share/texmf-texlive/tex/latex/base/syntonly.sty)kpathsea: Invalid fontname `AR PL SungtiL GB', contains ' '我在Ubuntu上使用xeCJK 3.1415926-2.2-0.9995.2中的XeTeX包(TeX Live2009/Debian)。
发布于 2010-04-30 13:08:09
您试过使用fontspec包吗?
我可以使用任何已安装的字体,即使它们的名字中有空格。请注意,我使用的是Mac,但是根据包文档,它应该可以在任何基于xetex的系统上工作。在下面的例子中,中文字体是"Apple LiSung“。(当然,文件的编码是UTF-8。)
\usepackage{fontspec}% provides font selecting commands
\usepackage{xunicode}% provides unicode character macros
\usepackage{xltxtra} % provides some fixes/extras
\newfontfamily\zh{Apple LiSung}
\begin{document}
And then she asked: {\zh 今天你还好吗?} But I couldn't answer ...请参阅优秀的包文档这里。
https://stackoverflow.com/questions/2661282
复制相似问题