覆盖某些字体后,文档查看器和其他程序不会显示某些文本

覆盖某些字体后,文档查看器和其他程序不会显示某些文本

将字体从我的 Windows XP 系统复制到/usr/share/fonts/truetype/文件夹后,文档查看器(版本 2.23.0)不再显示某些文本(作为我的 pdf 的摘要)。 Okular(版本 4:4.5.5-0ubuntu2)、ePDFViewer(版本 0.1.7-4)和 KPDF(3.5.10)也出现了同样的情况。

但是,我可以使用 xpdf(版本 3.02-9)和 Adob​​e Reader 9 阅读我的 pdf。

知道文档查看器出了什么问题吗?我尝试重新安装它,但没有任何变化。

- 更新:

$ sudo fc-cache -v
/usr/share/fonts: skipping, existing cache is valid: 0 fonts, 3 dirs
/usr/share/fonts/X11: skipping, existing cache is valid: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/Type1: skipping, existing cache is valid: 44 fonts, 0 dirs
/usr/share/fonts/X11/encodings: skipping, existing cache is valid: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/misc: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/X11/util: skipping, existing cache is valid: 0 fonts, 0 dirs
/usr/share/fonts/truetype: skipping, existing cache is valid: 272 fonts, 20 dirs
/usr/share/fonts/truetype/freefont: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: skipping, existing cache is valid: 60 fonts, 0 dirs
/usr/share/fonts/truetype/openoffice: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/takao: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/thai: skipping, existing cache is valid: 54 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: skipping, existing cache is valid: 21 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-droid: skipping, existing cache is valid: 9 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-indic-fonts-core: skipping, existing cache is valid: 17 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-kacst-one: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-khmeros-core: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-lao: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-liberation: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-punjabi-fonts: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-symbol-replacement: skipping, existing cache is valid: 0 fonts, 1 dirs
/usr/share/fonts/truetype/ttf-symbol-replacement/symbol-replacement.ttf: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-ubuntu-title: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-xfree86-nonfree: skipping, existing cache is valid: 12 fonts, 0 dirs
/usr/share/fonts/truetype/ubuntu-font-family: skipping, existing cache is valid: 4 fonts, 0 dirs
/usr/share/fonts/truetype/umefont: skipping, existing cache is valid: 18 fonts, 0 dirs
/usr/share/fonts/truetype/unfonts: skipping, existing cache is valid: 4 fonts, 0 dirs
/usr/share/fonts/truetype/wqy: skipping, existing cache is valid: 2 fonts, 0 dirs
/usr/share/fonts/type1: skipping, existing cache is valid: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: skipping, existing cache is valid: 35 fonts, 0 dirs
/usr/share/fonts/type1/mathml: skipping, existing cache is valid: 1 fonts, 0 dirs
/usr/X11R6/lib/X11/fonts: skipping, no such directory
/usr/local/share/fonts: skipping, existing cache is valid: 0 fonts, 0 dirs
/home/tombrito/.fonts: skipping, existing cache is valid: 0 fonts, 0 dirs
/var/cache/fontconfig: cleaning cache directory
/home/tombrito/.fontconfig: cleaning cache directory
fc-cache: succeeded

- 更新:截图

摘要:

在此处输入图片描述

比较一下,左边是文档查看器,右边是 Adob​​e Reader:

在此处输入图片描述

答案1

truetype从 中完全删除(而不仅仅是重命名)文件夹/usr/share/fonts

然后做sudo fc-cache -f
一个sudo dpkg-reconfigure fontconfig

相关内容