Friday, June 21, 2013

Linux 下 evince 中文乱码解决办法

$ sudo apt-get install poppler-data

安装文泉驿字体

修改 /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>WenQuanYi Zen Hei</string>
        </edit>
    </match>
</fontconfig>

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

No comments:

Post a Comment