Linux字体美化

xml 代码
  1. 使用simsun的美化效果是英文字体发虚.   
  2. 看了linuxfans的那篇文章,对字体美化有了一些了解,就开始用上面介绍的方法进行美化.   
  3. 大概可以将美化方案分为AA,和非AA, AA是指抗锯齿的方案,结果是所有的字体粗粗黑黑的,像苹果系统(我没用过),非AA即与AA相反,字体像Windows清晰细致.   
  4. 字体下载:http://www.linuxfans.org/nuke/modules.php?name=Site_Downloads&op=geninfo&did=2488  
  5. 上面是我用的字体美化方案和下载地址,不过速度不快,我在oss.org.cn找到了更快的下载地址:   
  6. http://oss.org.cn/modules/wfdownloads/singlefile.php?cid=143&lid=599  
  7. 我在centos上实现比教程上简单的多,前面步骤都可以省略了.   
  8. 将下载下来的八个字体,全部拷贝到自己的主目录下~/.fonts文件夹中,点开头是个隐藏的文件夹,你可以用终端拷贝:cp * ~/.fonts/ 或是用nautilus打开,在地址栏输入/home/yourname/.fonts   
  9. 以下方案选择一个.   
  10. 使用AA:   
  11. 建议cp一份: #cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.backup   
  12. 编辑/etc/fonts/fonts.conf,在最后的</fontconfig>之前加入以下内容就可以了.   
  13. <match target="font">  
  14. <test name="family"><string>Vera Sans YuanTi</string></test>  
  15. <edit name="globaladvance"><bool>false</bool></edit>  
  16. </match>  
  17. <match target="font">  
  18. <test name="family"><string>Vera Sans YuanTi Mono</string></test>  
  19. <edit name="globaladvance"><bool>false</bool></edit>  
  20. </match>  
  21. <match target="font">  
  22. <edit name="antialias" mode="assign"><bool>true</bool></edit>  
  23. <edit name="hinting" mode="assign"><bool>false</bool></edit>  
  24. <edit name="autohint" mode="assign"><bool>false</bool></edit>  
  25. <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>  
  26. <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>  
  27. </match>  
  28. 使用非AA:   
  29. 编辑/etc/fonts/fonts.conf,加入    
  30. <match target="font">    
  31. <test name="family"><string>Vera Sans YuanTi</string></test>    
  32. <edit name="globaladvance"><bool>false</bool></edit>    
  33. </match>    
  34. <match target="font">    
  35. <test name="family"><string>Vera Sans YuanTi Mono</string></test>    
  36. <edit name="globaladvance"><bool>false</bool></edit>    
  37. </match>    
  38. <match target="font">    
  39. <edit name="antialias"><bool>true</bool></edit>    
  40. <edit name="hinting"><bool>false</bool></edit>    
  41. <edit name="autohint"><bool>false</bool></edit>    
  42. </match>  
  43. <match target="font">    
  44. <test name="pixelsize" compare="more_eq"><double>12</double></test>    
  45. <test name="pixelsize" compare="less_eq"><double>16</double></test>    
  46. <edit name="antialias"><bool>false</bool></edit>    
  47. <edit name="hinting"><bool>true</bool></edit>    
  48. <edit name="autohint"><bool>false</bool></edit>    
  49. </match>  
  50.   
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值