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> WenQuanYi Micro Hei</string>
</edit>
</match>
</fontconfig>

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

将第四项sans-serif改为WenQuanYi Micro Hei。

你可能感兴趣的:(Ubuntu Document viewer 中文显示乱码解决方法)