为X Windows添加TrueType字体

1. 安装字体设置工具fontconfig和ttmkfdir(也可安装freetype/Xft以增强字体显示效果)
2. 将Windows下的TrueType字体目录(C:/windows/fonts/*.ttf,*.ttc,*.TTF )拷贝到Linux系统的字体目录(/usr/share/fonts/windows)。
#cd /usr/share/fonts/windows
3. 创建字体索引
#ttmkfdir -o fonts.scale (创建TrueType字体的索引文件,会把原来的覆盖掉)
4. 更新字体信息缓存并重启字体服务xfs
#fc-cache -fv
#/sbin/service xfs restart
5. 检查字体安装情况
#fc-list | grep Sim
6. 修正浏览器的中文字体
firefox:Edit->Preferences->Content Tab->Default font设为Simsun(宋体)
7. 修正输入法的中文字体
scim:Pannel->GTK->Font设为Simsun(宋体)

你可能感兴趣的:(windows)