LinuxSir.cn,穿越时空的Linuxsir!

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

近日Debian更新贴士(fontconfig, fc-cache, 程序启动变慢)

[复制链接]
发表于 2006-9-18 09:08:29 | 显示全部楼层 |阅读模式
如果用 root 权限执行 fc-cache 出现 failed to write cache 提示,原理是这样的:
新版本的 fontconfig 和 fontconfig-config 在 /etc/fonts/fonts.conf 里面
新增加了两行
        <cachedir>/var/cache/fontconfig</cachedir>
        <cachedir>~/.fontconfig</cachedir>
如果 upgrade 的时候没有用 apt 带的 fonts.conf ,可以手动加入这两行

来源:Debian bug report logs - #387928


另外,一个小提示:/etc/fonts/conf.d/70-no-bitmaps.conf 的存在会让文泉驿点阵
字体无法被 fc-cache 出来
发表于 2006-9-20 21:58:08 | 显示全部楼层
怪不的莫名的慢

ps:你的头像好像是ESR的哪本书上的
回复 支持 反对

使用道具 举报

发表于 2006-9-28 10:31:38 | 显示全部楼层
多谢楼主

忘了看置顶贴,自己瞎搞了一阵。
回复 支持 反对

使用道具 举报

发表于 2006-9-30 21:00:07 | 显示全部楼层

还是用fonts.conf.dpkg-dist替换自己的fonts.conf吧

按照楼主的方法修改后,没什么用

倒是 用 发行版的 fonts.conf替换我原来修改过的fonts.conf就好了


#cd /etc/fonts
#cp fonts.conf.dpkg-dist fonts.conf

飞快,似乎比原来还要快了,呵呵
回复 支持 反对

使用道具 举报

发表于 2006-10-1 11:50:48 | 显示全部楼层
按四楼的方法改的,现在启动快多了。
一楼的方法没试,呵呵。
回复 支持 反对

使用道具 举报

发表于 2006-10-1 22:46:22 | 显示全部楼层
字体似乎搞乱了,现在mozilla里面的字好难看啊。
回复 支持 反对

使用道具 举报

发表于 2006-10-2 08:19:28 | 显示全部楼层
我的也是,字体变得模糊了
回复 支持 反对

使用道具 举报

发表于 2006-10-2 13:47:12 | 显示全部楼层
我的字体似乎也有些微小变化

我的Gnome字体设置里 默认字体是 Sans 这类
回复 支持 反对

使用道具 举报

发表于 2006-10-2 20:58:36 | 显示全部楼层
我的字体也变乱了啊,还有没有其他方法
回复 支持 反对

使用道具 举报

发表于 2006-10-9 01:49:02 | 显示全部楼层

今天新安装的ETCH系统,fonts.conf已经包含了cachedir那2行,仍然是failed write cache

完全重新安装的系统,fontconfig版本如下:
ii  fontconfig                       2.4.1-2                     generic font configuration library - support
ii  fontconfig-config                2.4.1-2                     generic font configuration library - configu
ii  libfontconfig1                   2.4.1-2                     generic font configuration library - runtime

这是fc-cache -f -v的出错提示:
gnulzx:~# fc-cache -f -v
/usr/share/fonts: caching, 0 fonts, 3 dirs
/usr/share/fonts/X11: caching, 0 fonts, 6 dirs
/usr/share/fonts/X11: failed to write cache
/usr/share/fonts/X11/100dpi: caching, 358 fonts, 0 dirs
/usr/share/fonts/X11/100dpi: failed to write cache
/usr/share/fonts/X11/75dpi: caching, 358 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: failed to write cache
/usr/share/fonts/X11/Type1: caching, 8 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings: failed to write cache
/usr/share/fonts/X11/encodings/large: caching, 0 fonts, 0 dirs
/usr/share/fonts/X11/encodings/large: failed to write cache
/usr/share/fonts/X11/misc: caching, 111 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, 0 fonts, 0 dirs
/usr/share/fonts/X11/util: failed to write cache
/usr/share/fonts/truetype: caching, 0 fonts, 3 dirs
/usr/share/fonts/truetype/arphic: caching, 1 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: caching, 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, 21 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: failed to write cache
/usr/share/fonts/type1: caching, 0 fonts, 1 dirs
/usr/share/fonts/type1/gsfonts: caching, 35 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: caching, 0 fonts, 1 dirs
/usr/X11R6/lib/X11/fonts: failed to write cache
/usr/X11R6/lib/X11/fonts/encodings: caching, 0 fonts, 1 dirs
/usr/X11R6/lib/X11/fonts/encodings: failed to write cache
/usr/X11R6/lib/X11/fonts/encodings/large: caching, 0 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts/encodings/large: failed to write cache
/usr/local/share/fonts: caching, 0 fonts, 0 dirs
/usr/local/share/fonts: failed to write cache
/root/.fonts: skipping, no such directory
/var/lib/defoma/fontconfig.d: caching, 0 fonts, 5 dirs
/var/lib/defoma/fontconfig.d/C: caching, 4 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/D: caching, 22 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/N: caching, 16 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/S: caching, 1 fonts, 0 dirs
/var/lib/defoma/fontconfig.d/U: caching, 13 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory
fc-cache: failed
gnulzx:~#
没有查到新的相关信息,也没有bug报告
回复 支持 反对

使用道具 举报

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

本版积分规则

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