ubuntu 默认pdf阅读器乱码

安装Poppler-data 并且修改一个文件,如下:

cd /etc/fonts/conf.d/

sudo gedit 49-sansserif.conf

修改edit结点 将<string>sans-serif</string> 改为<string>sans</string>

修改edit节点,将<string>sans-serif </string>

<?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</string>
        </edit>
    </match>
</fontconfig>
~                           
问题成功解决, ^-^...

 

你可能感兴趣的:(ubuntu 默认pdf阅读器乱码)