LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1014|回复: 4

fc-cache出错了

[复制链接]
发表于 2006-9-16 10:46:33 | 显示全部楼层 |阅读模式
今天升级了libfontconfig1 2.3.2-7 -> 2.4.0-5, libfontconfig1-dev 2.3.2-7 -> 2.4.0-5, libfreetype6 2.2.1-4 -> 2.2.1-5, libfreetype6-dev 2.2.1-4 -> 2.2.1-5这几个包,然后就出问题了。

先是
/usr/share/fonts: /usr/share/fonts: failed to write cache
caching, 0 fonts, 8 dirs
/usr/share/fonts/X11: /usr/share/fonts/X11: failed to write cache
caching, 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: /usr/share/fonts/X11/100dpi: failed to write cache
caching, 358 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: /usr/share/fonts/X11/75dpi: failed to write cache
caching, 358 fonts, 0 dirs
/usr/share/fonts/X11/Type1: /usr/share/fonts/X11/Type1: failed to write cache
caching, 43 fonts, 0 dirs
/usr/share/fonts/X11/encodings: /usr/share/fonts/X11/encodings: failed to write cache
caching, 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: /usr/share/fonts/X11/encodings/large: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: /usr/share/fonts/X11/misc: failed to write cache
caching, 55 fonts, 0 dirs
/usr/share/fonts/X11/util: /usr/share/fonts/X11/util: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/bitmap: /usr/share/fonts/bitmap: failed to write cache
caching, 0 fonts, 1 dirs
/usr/share/fonts/bitmap/wenquanyi: /usr/share/fonts/bitmap/wenquanyi: failed to write cache
caching, 8 fonts, 0 dirs
/usr/share/fonts/cmap: /usr/share/fonts/cmap: failed to write cache
caching, 0 fonts, 2 dirs
/usr/share/fonts/cmap/adobe-cns1: /usr/share/fonts/cmap/adobe-cns1: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/cmap/adobe-gb1: /usr/share/fonts/cmap/adobe-gb1: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/jfbterm: /usr/share/fonts/jfbterm: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/truetype: /usr/share/fonts/truetype: failed to write cache
caching, 1 fonts, 12 dirs
/usr/share/fonts/truetype/arphic: /usr/share/fonts/truetype/arphic: failed to write cache
caching, 3 fonts, 0 dirs
/usr/share/fonts/truetype/dustin: /usr/share/fonts/truetype/dustin: failed to write cache
caching, 20 fonts, 0 dirs
/usr/share/fonts/truetype/freefont: /usr/share/fonts/truetype/freefont: failed to write cache
caching, 12 fonts, 0 dirs
/usr/share/fonts/truetype/hiweed: /usr/share/fonts/truetype/hiweed: failed to write cache
caching, 7 fonts, 0 dirs
/usr/share/fonts/truetype/kochi: /usr/share/fonts/truetype/kochi: failed to write cache
caching, 2 fonts, 0 dirs
/usr/share/fonts/truetype/latex-xft-fonts: /usr/share/fonts/truetype/latex-xft-fonts: failed to write cache
caching, 7 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: /usr/share/fonts/truetype/openoffice: failed to write cache
caching, 1 fonts, 0 dirs
/usr/share/fonts/truetype/sjfonts: /usr/share/fonts/truetype/sjfonts: failed to write cache
caching, 2 fonts, 0 dirs
/usr/share/fonts/truetype/thryomanes: /usr/share/fonts/truetype/thryomanes: failed to write cache
caching, 4 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-bitstream-vera: /usr/share/fonts/truetype/ttf-bitstream-vera: failed to write cache
caching, 10 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-hanwang-gb: /usr/share/fonts/truetype/ttf-hanwang-gb: failed to write cache
caching, 4 fonts, 0 dirs
/usr/share/fonts/truetype/wqy: /usr/share/fonts/truetype/wqy: failed to write cache
caching, 2 fonts, 0 dirs
/usr/share/fonts/type1: /usr/share/fonts/type1: failed to write cache
caching, 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: /usr/share/fonts/type1/gsfonts: failed to write cache
caching, 35 fonts, 0 dirs
/usr/share/fonts/wine: /usr/share/fonts/wine: failed to write cache
caching, 0 fonts, 0 dirs
/usr/share/fonts/zh_CN: /usr/share/fonts/zh_CN: failed to write cache
caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_CN/TrueType: /usr/share/fonts/zh_CN/TrueType: failed to write cache
caching, 1 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: /usr/X11R6/lib/X11/fonts: failed to write cache
caching, 0 fonts, 7 dirs
/usr/X11R6/lib/X11/fonts/100dpi: /usr/X11R6/lib/X11/fonts/100dpi: failed to write cache
caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/75dpi: /usr/X11R6/lib/X11/fonts/75dpi: failed to write cache
caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/Speedo: /usr/X11R6/lib/X11/fonts/Speedo: failed to write cache
caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/TrueType: /usr/X11R6/lib/X11/fonts/TrueType: failed to write cache
caching, 5 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/Type1: /usr/X11R6/lib/X11/fonts/Type1: failed to write cache
caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/encodings: /usr/X11R6/lib/X11/fonts/encodings: failed to write cache
caching, 0 fonts, 1 dirs
/usr/X11R6/lib/X11/fonts/encodings/large: /usr/X11R6/lib/X11/fonts/encodings/large: failed to write cache
caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/misc: /usr/X11R6/lib/X11/fonts/misc: failed to write cache
caching, 0 fonts, 0 dirs
/usr/local/share/fonts: /usr/local/share/fonts: failed to write cache
caching, 9 fonts, 0 dirs
/var/lib/defoma/fontconfig.d: /var/lib/defoma/fontconfig.d: failed to write cache
caching, 0 fonts, 23 dirs
/var/lib/defoma/fontconfig.d/A: /var/lib/defoma/fontconfig.d/A: failed to write cache
caching, 0 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/B: /var/lib/defoma/fontconfig.d/B: failed to write cache
caching, 12 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/C: /var/lib/defoma/fontconfig.d/C: failed to write cache
caching, 4 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/D: /var/lib/defoma/fontconfig.d/D: failed to write cache
caching, 11 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/E: /var/lib/defoma/fontconfig.d/E: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/F: /var/lib/defoma/fontconfig.d/F: failed to write cache
caching, 12 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/G: /var/lib/defoma/fontconfig.d/G: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/H: /var/lib/defoma/fontconfig.d/H: failed to write cache
caching, 4 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/I: /var/lib/defoma/fontconfig.d/I: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/J: /var/lib/defoma/fontconfig.d/J: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/K: /var/lib/defoma/fontconfig.d/K: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/M: /var/lib/defoma/fontconfig.d/M: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/N: /var/lib/defoma/fontconfig.d/N: failed to write cache
caching, 16 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/P: /var/lib/defoma/fontconfig.d/P: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/S: /var/lib/defoma/fontconfig.d/S: failed to write cache
caching, 3 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/T: /var/lib/defoma/fontconfig.d/T: failed to write cache
caching, 4 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/U: /var/lib/defoma/fontconfig.d/U: failed to write cache
caching, 13 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/W: /var/lib/defoma/fontconfig.d/W: failed to write cache
caching, 2 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/c: /var/lib/defoma/fontconfig.d/c: failed to write cache
caching, 4 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/f: /var/lib/defoma/fontconfig.d/f: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/m: /var/lib/defoma/fontconfig.d/m: failed to write cache
caching, 2 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/p: /var/lib/defoma/fontconfig.d/p: failed to write cache
caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/w: /var/lib/defoma/fontconfig.d/w: failed to write cache
caching, 1 fonts, 0 dirs
/usr/lib/X11/fonts/misc: /usr/lib/X11/fonts/misc: failed to write cache
caching, 0 fonts, 0 dirs
/usr/lib/X11/fonts/100dpi: /usr/lib/X11/fonts/100dpi: failed to write cache
caching, 0 fonts, 0 dirs
/usr/lib/X11/fonts/75dpi: /usr/lib/X11/fonts/75dpi: failed to write cache
caching, 0 fonts, 0 dirs
/usr/lib/X11/fonts/Type1: /usr/lib/X11/fonts/Type1: failed to write cache
caching, 0 fonts, 0 dirs
/usr/lib/X11/fonts/Speedo: /usr/lib/X11/fonts/Speedo: failed to write cache
caching, 0 fonts, 0 dirs
fc-cache: failed

然后我把libfontconfig1降级回到2.3.2-7,情况又成了:
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 18: invalid match target "scan"
fc-cache: symbol lookup error: fc-cache: undefined symbol: FcDirCacheLoad。
现在我的X程序启动很慢。不知道怎么回事。
 楼主| 发表于 2006-9-16 11:13:55 | 显示全部楼层
搞定了,不过现在字体超难看了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-16 11:20:42 | 显示全部楼层
奇怪,现在上海宋这个字体没了
回复 支持 反对

使用道具 举报

发表于 2006-9-16 11:45:26 | 显示全部楼层
新版把中文字体名提前了,
% fc-list|grep 宋                          
宋体\-方正超大字符集,Simsun (Founder Extended):style=Regular
華康標準宋體,DFSongStd:style=Regular
新宋体,NSimSun:style=Regular
华文宋体,STSong:style=Regular
仿宋_GB2312,FangSong_GB2312:style=Regular
文鼎PL新宋,AR PL New Sung:style=Regular
宋体,SimSun:style=Regular
华文仿宋,STFangsong:style=Regular
文鼎PL简报宋,AR PL SungtiL GB:style=Regular
王汉宗中仿宋简,HanWangFangSongMedium\-Gb5,王漢宗中仿宋簡:style=Regular,Gb5
王汉宗细新宋简,HanWangSinSongThin\-Gb5,王漢宗細新宋簡:style=Regular,Gb5
华文中宋,STZhongsong:style=Regular
文鼎PL細上海宋,AR PL Mingti2L Big5:style=Regular,Reguler
永中仿宋,Evermore FangSong:style=Regular
文鼎PL细上海宋Uni,AR PL ShanHeiSun Uni,文鼎PL細上海宋Uni:style=Regular
永中宋体,Evermore Song:style=Regular

看看/etc/fonts/conf.avail/README,然后在/etc/fonts/conf.d/多grep一下,把优先匹配的字体配制改成非数字打头的,原来老是匹配成文鼎的楷体,我是直接mv 65-nonlatin.conf m-65-nonlatin.conf,将原来的链接字体配制21-uming.conf 改成65-uming.conf就变回来了

% fc-match
simsun.ttc: "宋体" "Regular"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-16 11:50:24 | 显示全部楼层
还好我有文泉驿
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表