Method:
1. Obtain the font file from the Windows system: Windows/fonts directory under C-disk such as SIMHEI.TTF/SIMSUN.TTC;
2. Linux (centos6.5)/usr/share/fonts/under mkdir Chinese directory;
3. Give operation permission: Chmod-r 755/usr/share/fonts/chinese;
4. Install Ttmkfdir to search all font information in the directory yum-y install Ttmkfdir ttmkfdir-e/usr/share/x11/fonts/encodings/encodings.dir after installation;
5. Modify Font profile vi/etc/fonts/fonts.conf Join a line to see
6. Refresh the in-memory font cache fc-cache View the font list fc-list (Linux font configuration complete!) )
(the above 6 steps are after the 7th step configuration, the verification code does not appear in the case of Chinese)
7. Also upload the two font files of SIMHEI.TTF/SIMSUN.TTC to Discuz project/ Static/image/seccode/font/ch (or en directory, depending on discuz background requirements) Under . all configurations end!