在ubuntu中安装中文字体
原文地址 http://www.javawind.net/p130
1、先从你本机 C:\Windows\Fonts 拷贝或者网络上下载你想要安装的字体文件(*.ttf文件)到/usr/share/fonts/chinese/TrueType 目录下(如果系统中没有此目录,则自行mkdir创建,亦可重命名为自己喜欢的文件夹名。如果是ttc文件,请改后缀为ttf)
2、修改字体文件的权限,使root用户以外的用户也可以使用
# cd /usr/share/fonts/chinese/TrueType
# chmod 755 *.ttf
3、建立字体缓存
# mkfontscale (如果提示 mkfontscale: command not found,则需要安装# sudo apt-get install ttf-mscorefonts-installer)# mkfontdir
# fc-cache -fv (如果提示 fc-cache: command not found,则需要安装# sudo apt-get install fontconfig)