Invalid xelatex file name

I want to use Chinese openoffice fonts, such as AR PL SungtiL GB, but xelatex tells me that this is an invalid name (as shown below). It looks like the font name has spaces and therefore does not recognize it? How do 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 on XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009 / Debian) on Ubuntu.

+6
latex tex cjk xetex
source share
1 answer

Have you tried using the fontspec package?

I can use any installed font, even if there are spaces in the names. Please note that I am using a Mac, but according to the package documentation, it should work on any xetex-based system. In the following example, the Chinese font is "Apple LiSung." (Of course, the file encoding is 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 ... 

See excellent package documentation here .

+1
source share

All Articles