CentOS下使用默认的文档查看器打开PDF文档乱码的解决方案
2014-02-19 15:52
447 查看
CentOS下使用其默认的文档查看器打开PDF文档时出现乱码的方块,修改/etc/fonts/conf.d/49-sansserif.conf文件,原文件如下:
修改成如下的形式即可解决。
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>sans-serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>sans-serif</string> </edit> </match> </fontconfig>
修改成如下的形式即可解决。
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>sans-serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <!-- string>sans-serif</string> --> <string><span style="color:#ff0000;">文泉驿正黑</span></string> </edit> </match> </fontconfig>
相关文章推荐
- CentOS6.4下使用默认的文档查看器打开PDF文档乱码的解决方案
- CentOS6.4下使用默认的文档查看器打开PDF文档乱码的解决方案
- CentOS6.4下使用默认的PDF文档阅读器出现乱码的解决方案
- CentOS使用 Document Viewer查看pdf文档乱码解决办法
- IIS6(Win2003) 使用.net 4.0 后,默认文档失效解决方案。
- 解决ubuntu使用gedit打开windows保存过的文档中文乱码
- 使用com.aspose.words将word模板转为PDF乱码解决方案(window下正常)
- Itext 使用入门 之 创建pdf 文档 附中文解决方案
- ubuntu14.04默认的PDF文档查看器Evince
- Win2003 IIS6 使用.net framework 4.0 后默认文档失效解决方案
- 使用xshell打开centos中文显示为乱码
- Itext 使用入门 之 创建pdf 文档 附中文解决方案
- 关于手机打开pdf文档乱码的解决办法
- 关于RDLC使用导出PDF文件时,中文乱码解决方案
- IIS6(Win2003) 使用.net framework 4.0 后,默认文档失效解决方案。
- 同时安装excel 2003和2007,默认使用excel 2003打开excel文档
- 设置word打开文档时默认使用“文档结构图”视图
- 使用Document Viewer查看pdf文档显示方块乱码:
- ubuntu 下Evince看pdf文档的乱码 解决方案
- centos6.2 部分pdf中文文档乱码解决