8

I want to use the openoffice chinese fonts, eg AR PL SungtiL GB, but the xelatex tells me that it is an invalid name (as shown below). It seems like the font name has spaces and so it doesn't recognize it? How should I get around this?

(/usr/share/texmf-texlive/tex/latex/base/syntonly.sty)kpathsea: Invalid fontname `AR PL SungtiL GB', contains ' '

I am using the xeCJK package in XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) on Ubuntu.

4

1 回答 1

1

您是否尝试过使用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 ...

在此处查看出色的软件包文档。

于 2010-04-30T13:08:09.017 回答