免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3782 | 回复: 3
打印 上一主题 下一主题

请问怎么样安装windows的宋体字? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-05 17:30 |只看该作者 |倒序浏览
请问怎么样安装windows的宋体字?装了一下,更新了CACHE,但是没有成功。

[root@ftp-test TrueType]# fc-cache -fv
/usr/share/fonts: caching, 0 fonts, 7 dirs
/usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs
/usr/share/fonts/bitstream-vera: caching, 10 fonts, 0 dirs
/usr/share/fonts/chinese: caching, 0 fonts, 2 dirs
/usr/share/fonts/chinese/TrueType: caching, 3 fonts, 0 dirs
/usr/share/fonts/chinese/misc: caching, 1 fonts, 0 dirs
/usr/share/fonts/default: caching, 0 fonts, 2 dirs
/usr/share/fonts/default/Type1: caching, 35 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: caching, 8 fonts, 0 dirs
/usr/share/fonts/dejavu-lgc: caching, 21 fonts, 0 dirs
/usr/share/fonts/zh_CN: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_CN/TrueType: caching, 1 fonts, 0 dirs
/usr/share/fonts/zh_TW: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_TW/TrueType: caching, 1 fonts, 0 dirs
/usr/share/X11/fonts/Type1: caching, 29 fonts, 0 dirs
/usr/share/X11/fonts/OTF: skipping, no such directory
/root/.fonts: caching, 0 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory
fc-cache: succeeded

论坛徽章:
0
2 [报告]
发表于 2009-11-05 17:30 |只看该作者
10
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-ascii-0
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-cns11643-1
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-cns11643-2
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-cns11643-3
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb18030.2000-0
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-gbk-0
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-iso10646-1
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-jisx0208.1983-0
zysong.ttf -misc-ZYSong18030-medium-r-normal--0-0-0-0-c-0-jisx0208.1990-0
~
~
~
~
~
~

论坛徽章:
0
3 [报告]
发表于 2009-11-06 09:52 |只看该作者
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

论坛徽章:
0
4 [报告]
发表于 2009-11-13 22:20 |只看该作者
目前已经有很多的改善了
基本上不用在这样复杂的操作的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP