- 论坛徽章:
- 0
|
我的系统是红帽FC4,原来的字体我还看不上眼呢,不带刚好自己定制。拷贝simsun.ttc作为基本观看使用,需要什么字体,就下载 字体.ttf 拷贝到 /usr/share/fonts/chinese/TrueType 就可以直接用。
现把过程介绍给大家:
1. 创建/usr/share/fonts/local/
命令:# mkdir /usr/share/fonts/local/
2.把 simsun.ttc(或者 simsun.ttf) 文件拷贝到 /usr/share/fonts/local/目录
注:simsun.ttc--windows XP 和 windows 2003 ; simsun.ttf--windows 其他版本.
付与所有用户对 /usr/share/fonts/local 这个文件夹的写入的权限
# chmod a+w /usr/share/fonts/local
把simsun.ttc(或者 simsun.ttf) 文件拷贝到 /usr/share/fonts/local/
3.生成字体
# ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale
把fonts.scale复制一份,命名为fonts.dir
4.把上面的onts.scale 和 fonts.dir两个文件替换下列路径中同名文件(替换前最好备份,以免出错后悔)/usr/share/fonts/chinese/TrueType
因为 TrueType是系统生成的,所以要和 2. 中一样赋予所有用户写入 文件夹TrueType的 权限
命令:chmod a+w /usr/share/fonts/chinese/TrueType
5.扫尾工作:收回除了root用户之外的其他用户的写入上面2个文件夹的权限
命令:chmod og-w /usr/share/fonts/chinese/TrueType
命令:chmod og-w /usr/share/fonts/local
6.注销,重新登录系统,字体搞定了!祝你成功!
[ 本帖最后由 stonyzhao 于 2006-8-17 01:46 编辑 ] |
|