[XeTeX] simple font installation question

Andrew Moschou andmos at gmail.com
Mon Apr 21 10:53:07 CEST 2008


In addition, you should be able to use any font that is installed on
your system. If you have Chinese language support installed, you
should already have Chinese fonts installed. Typing "fc-list
>fontlist.txt" at the command prompt will produce a text file
fontlist.txt that contains a list of all available fonts, to identify
the Chinese fonts, look for Chinese characters in the file, e.g.
because "SimSun,宋体:style=Regular" is in the list, SimSun is an
available font.

On 21/04/2008, Andrew Moschou <andmos at gmail.com> wrote:
> Dan,
>
>  XeLaTeX must be told which fonts to use, because Chinese characters do
>  not exist in Computer Modern or Latin Modern. To do this, use the
>  fontspec package.
>
>  I use FangZheng KaiTi (Simplified) here, which is not in Big5 but that
>  doesn't matter for this example, but you can use another font. The PDF
>  is attached.
>
>  \documentclass{book}
>  \usepackage{fontspec}
>  \setmainfont{FZKai-Z03S}
>
> \begin{document}
>   Chinese 1 2 3 \\
>   中文  一二三 \\
>   end
>  \end{document}
>
>
> I recommend you read the fontspec documentation to understand how to
>  set fonts in XeLaTeX.
>
>
>  Andrew
>
>


More information about the XeTeX mailing list