linux系统解决poppler中文显示乱码问题



linux系统解决poppler中文显示乱码问题  。

(1)安装poppler-data(默认已安装):

$sudo yum install poppler-data

(2)添加文泉驿字体:
$cd /etc/fonts/conf.d
$sudo chmod 777 49-sansserif.conf
$sudo gedit 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>