为你而来

(转载)Ubuntu Document viewer 中文显示乱码解决方法

安装poppler-data


sudo apt-get install poppler-data
安装文泉驿字体

修改字体设置


sudo chmod 777 /etc/fonts/conf.d/49-sansserif.conf
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>

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

将第四项sans-serif改为文泉驿正黑

(原文地址)http://blog.sina.com.cn/s/blog_648672cb0100zsgv.html

posted on 2012-02-27 11:40  为你而来  阅读(540)  评论(0编辑  收藏  举报

导航