1. Under/usr/share/fonts/, create a new folder Winfonts, if there is no fonts directory, install fontconfig software (System font Management), and then copy win7 fonts Msyh.ttf and Msyhbd.ttf to Ubuntu/ The usr/share/fonts/.
2, install the font, if you do not have the following command to install the Xfonts-utils tool
# sudo chmod 664/usr/share/fonts/winfonts/*
# cd/usr/share/fonts/winfonts/
# sudo Mkfontscale
# sudo Mkfontdir
# sudo FC-CACHE-FV #建立字体缓存信息
3. See if the success
# FC-LIST:LANG=ZH-CN #如果成功就会有如下信息, and then reboot Tomcat without garbled.
Microsoft Yahei, Microsoft Black: Style=regular,normal,obyejné,standard,κανονικ,normaali,normál,normale,standaard,normalny, Обычный,normálne,navadno,arrunta
Microsoft Yahei, Microsoft Black: Style=bold,negreta,tuné,fed,fett,ντονα,negrita,lihavoitu,gras,félkvér,grassetto,vet, Halvfet,pogrubiony,negrito,полужирный,fet,kaln,krepko,lodia
Ubuntu12.04 Installing Chinese fonts (GO)