XeLaTeX 编译效果图

字体配置文件 ctex-fontset-lxgw.def(很重要), ctex-spa-make.tex(无关紧要), 和 ctex-zhmap-lxgw.tex(为兼容 pdfLaTeX 的字体映射)见附件.
工作实例:
\documentclass[fontset = lxgw]{ctexart}
\begin{document}
\def \0{我可以食玻璃,佢傷唔到我㗎。我能吞下玻璃而不伤身体。\par}
\normalfont 宋体 (\verb|\rmfamily \upshape|)
\normalfont \songti \0
\normalfont \rmfamily \0
\normalfont \bfseries \songti \0
\normalfont \bfseries \rmfamily \0
\normalfont 黑体 (\verb|\sffamily|)
\normalfont \heiti \0
\normalfont \sffamily\0
\normalfont \bfseries \sffamily\0
\normalfont \bfseries \heiti \0
\normalfont 楷书 (\verb|\itshape|)
\normalfont \kaishu \0
\normalfont \itshape \0
\normalfont \bfseries \kaishu \0
\normalfont 仿宋 (\verb|\ttfamily|)
\normalfont \fangsong \0
\normalfont \ttfamily \0
\normalfont \bfseries \fangsong \0
\normalfont \bfseries \ttfamily \0
\end{document}