文档查看器 pdf 乱码解决方案

Posted on 2013-02-14 00:19  SnakeHunt2012  阅读(218)  评论(0)    收藏  举报

本文始作于2012年3月30日,刊登于人人网,于2013年2月13日迁移至此

是配置文件的问题,修改配置文件:

sudo gedit /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>文泉驿正黑</string>
        </edit>
    </match>
</fontconfig>

如果没安装poppler-data的话还要安装一下poppler-data,我的是已经预安装好了的:

sudo apt-get install poppler-data

刚刚才发现,原来adobe提供Linux版本的Reader,而且还是.deb包。