沈雅

努力,以不负沈雅之名!
嵌入式、Linux、Cosplay、Acg、动漫、各种文学 全为我所爱矣!
交流联系:QQ88459122

修复lmde安装wps后字体发虚的问题。

kevin's fork:

1.安装ttf-wqy-zenhei跟xfonts-wqy

2.新建/usr/fonts/local.conf文件放入一下内容:

<?xml version="1.0"?>  

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">  

<fontconfig>  

   

     <match target="pattern">  

         <test qual="any" name="family">  

             <string>serif</string>  

         </test>  

         <edit name="family" mode="prepend" binding="strong">  

             <string>DejaVu Serif</string>  

             <string>Bitstream Vera Serif</string>  

             <string>WenQuanYi Micro Hei</string>  

             <string>AR PL UMing CN</string>  

             <string>AR PL UMing HK</string>  

             <string>AR PL ShanHeiSun Uni</string>  

             <string>AR PL New Sung</string>  

             <string>AR PL UKai CN</string>  

             <string>AR PL ZenKai Uni</string>  

         </edit>  

     </match>    

     <match target="pattern">  

         <test qual="any" name="family">  

             <string>sans-serif</string>  

         </test>  

         <edit name="family" mode="prepend" binding="strong">  

             <string>DejaVu Sans</string>  

             <string>Bitstream Vera Sans</string>  

             <string>WenQuanYi Micro Hei</string>  

             <string>Droid Sans Fallback</string>  

             <string>AR PL UMing CN</string>  

             <string>AR PL UMing HK</string>  

             <string>AR PL ShanHeiSun Uni</string>  

             <string>AR PL New Sung</string>  

             <string>AR PL UKai CN</string>  

             <string>AR PL ZenKai Uni</string>  

         </edit>  

     </match>    

     <match target="pattern">  

         <test qual="any" name="family">  

             <string>monospace</string>  

         </test>  

         <edit name="family" mode="prepend" binding="strong">  

             <string>DejaVu Sans Mono</string>  

             <string>Bitstream Vera Sans Mono</string>  

             <string>WenQuanYi Micro Hei Mono</string>  

             <string>Droid Sans Fallback</string>  

             <string>AR PL UMing CN</string>  

             <string>AR PL UMing HK</string>  

             <string>AR PL ShanHeiSun Uni</string>  

             <string>AR PL New Sung</string>  

             <string>AR PL UKai CN</string>  

             <string>AR PL ZenKai Uni</string>  

         </edit>  

     </match>    

   

</fontconfig>   

 



评论
热度(2)
  1. 沈雅kevin's fork 转载了此文字

© 沈雅 | Powered by LOFTER