解决Ubuntu的Pdf乱码问题

注意:本文最后更新于 2528 天前,有关的内容可能已经发生变化,请参考使用。

先安装poppler-data

    sudo apt-get install poppler-data

编辑 /etc/fonts/conf.d/49-sansserif.conf,将倒数第四行的字体改为汉字的字体,如下我改成了monospace

    
    <?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>monospace</string>
            </edit>
        </match>
    </fontconfig>

「倘若有所帮助,不妨酌情赞赏!」

Holmesian

感谢您的支持!

使用微信扫描二维码完成支付


相关文章

发表新评论