As far as I understand it the
\nullfont
is some kind of dummy font. from TeX by Topic:
TeX always knows a font that has no characters: the \nullfont
. If no font has been specified, or if in math mode a family member is needed that has not been specified, TeX will take its characters from the nullfont. This control sequence qualifies as a fontdef token : it acts like any other control sequence that stands for a font; it just does not have an associated tfm file.
LaTeX doesn't the font metric file it needs. From your log:
Code: Select all
LaTeX Font Info: Try loading font information for C10+song on input line 6.
(/usr/local/texlive/2015/texmf-dist/tex/latex/cjk/texinput/GB/c10song.fd
File: c10song.fd 2015/04/18 4.8.4
)
LaTeX Font Info: Try loading font information for C10+fs on input line 6.
(/usr/local/texlive/2015/texmf-dist/tex/latex/cjk/texinput/GB/c10fs.fd
File: c10fs.fd 2015/04/18 4.8.4
)
LaTeX Font Warning: Font shape `C10/song/m/n'
(Font) in size <10> not available.
(Font) Font shape `C10/fs/m/n'
(Font) tried instead on input line 6.
! Font C10/fs/m/n/10/01=gsfs1401 at 10.0pt not loadable: Metric (TFM) file not
found.
<to be read again>
relax
l.6 \CJKindent
Do you have the song font installed? (I haven't and I don't know how to do it…)
the sources may be helpful:
http://tex.stackexchange.com/q/147529/5049
http://tex.stackexchange.com/a/17637/5049
For me the following compiles:
Code: Select all
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{gbsn}
汉字
\end{CJK}
\end{document}