本页描述了openSUSE 13.2 下面字体显示不正常应该如何修改。

font-family的修改

打开$HOME/.config/fontconfig/fonts.conf文件,修改如下:

<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig><alias>

               <test name="user_preference_list"><bool>false</bool></test>
               <family>sans-serif</family>
               <prefer>
                       <family>Arimo</family>
                       <family>Noto Sans S Chinese</family>
                       <family>Noto Sans Japanese</family>
               </prefer>
       </alias>
       <alias>
               <test name="user_preference_list"><bool>false</bool></test>
               <family>serif</family>
               <prefer>
                       <family>Tinos</family>
                       <family>Noto Sans S Chinese</family>
                       <family>Noto Sans Japanese</family>
               </prefer>
       </alias>
       <alias>
               <test name="user_preference_list"><bool>false</bool></test>
               <family>monospace</family>
               <prefer>
                       <family>Cousine</family>
                       <family>Noto Sans S Chinese</family>
                       <family>Noto Sans Japanese</family>
               </prefer>
       </alias></fontconfig>

Verdana,Tahoma等字体关闭反锯齿

修改/etc/font.d/conf.d/10-group-tt-hinted-fonts.conf,注释掉Verdana,Tahoma和Microsoft YaHei相关的内容即可。