Portable, and consistent solution
Fandol fonts are reliable portable fonts for typesetting Simplified Chinese in TeX.
Fandol fonts are not perfect: compared to the other commercial fonts, the character set of Fandol fonts is somewhat restricted, and the puncuations need to be tuned.
Luckily, Fandol is a complete series of Chinese fonts in OpenType format, and well designed for typesetting.
% !TEX program = XeLaTeX
% !TEX encoding = UTF-8
\documentclass[UTF8,nofonts]{ctexart}
\setCJKmainfont[BoldFont=FandolSong-Bold.otf,ItalicFont=FandolKai-Regular.otf]{FandolSong-Regular.otf}
\setCJKsansfont[BoldFont=FandolHei-Bold.otf]{FandolHei-Regular.otf}
\setCJKmonofont{FandolFang-Regular.otf}
\begin{document}
\begin{tabular}{|l|l|l|l|}
\hline
& \multicolumn{3}{c|}{Series/Shape} \\ \cline{2-4}
Family & \verb=\mdseries= & \verb=\bfseries= & \verb=\mdseries\itshape= \\ \hline
\verb=\rmfamily= & 宋体 & \textbf{粗宋体} & \textit{楷体} \\
\verb=\sffamily= & \textsf{黑体} & \textsf{\textbf{粗黑体}} & \\
\verb=\ttfamily= & \texttt{仿宋体} &&\\ \hline
\end{tabular}
\end{document}
The problem is, most Chinese fonts are expensive commercial ones, you simply have little choice for free Chinese fonts. And what's more, Fandol font bundle is the only choice preinstalled in TeX Live (or MacTeX, MiKTeX) if you use XeTeX or LuaTeX. Therefore, it is now the only portable way to typesetting Simplified Chinese documents in TeX.
Yes there are also Arphic fonts, but only subfonts for CJK
package in Type1 format are provided in TeX distributions. Only two families (gbsn
and gkai
) for Simplified Chinese, or two corresponding families (bsmi
and bkai
) for Traditional Chinese are provided by Arphic.
Some sort of fallback option for rare glyphs?
No. We don't have enough fonts available for that.
Now we have some good free fonts for large character sets. For example the Souce Han Sans fonts. But they are pre-installed neither in TeX distributions, nor in operation systems.
Something native?
Yes it is possible. In the developer version (ver 2.x) of ctex
package, we defined several different font sets, and the package will detect the operation system and select a native font set if you wish.
- SinoType fonts are automatically selected for Mac.
- ZhongYi fonts are automatically selected for Windows.
- Fandol fonts are automatically selcted otherwise. (No, we don't use the incomplete Arphic fonts as default fonts, let alone WenQuanYi.)
And we do provide options to select Arphic and WenQuanYi fonts (fontset=ubuntu
option), there are also options for Adobe fonts and Founder fonts.