linux字体美化:使用verasansyuanti字体

上一篇 / 下一篇  2007-01-08 19:42:23 / 个人分类:linux

完全参考:http://www.linuxfans.org/nuke/mo ... e=viewtopic&t=66626

使用simsun的美化效果是英文字体发虚.

看了linuxfans的那篇文章,对字体美化有了一些了解,就开始用上面介绍的方法进行美化.

大概可以将美化方案分为AA,和非AA, AA是指抗锯齿的方案,结果是所有的字体粗粗黑黑的,像苹果系统(我没用过),非AA即与AA相反,字体像Windows清晰细致.

字体下载:http://www.linuxfans.org/nuke/mo ... ōp=geninfo&did=2488

上面是我用的字体美化方案和下载地址,不过速度不快,我在oss.org.cn找到了更快的下载地址:
http://oss.org.cn/modules/wfdown ... php?cid=143&lid=599

我在centos上实现比教程上简单的多,前面步骤都可以省略了.

将下载下来的八个字体,全部拷贝到自己的主目录下~/.fonts文件夹中,点开头是个隐藏的文件夹,你可以用终端拷贝:cp * ~/.fonts/   或是用nautilus打开,在地址栏输入/home/yourname/.fonts

以下方案选择一个.

使用AA:
建议cp一份: #cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.backup

编辑/etc/fonts/fonts.conf,在最后的</fontconfig>之前加入以下内容就可以了.

<match target="font">
  <test name="family"><string>Vera Sans YuanTi</string></test>
  <edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
  <test name="family"><string>Vera Sans YuanTi Mono</string></test>
  <edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
  <edit name="antialias" mode="assign"><bool>true</bool></edit>
  <edit name="hinting" mode="assign"><bool>false</bool></edit>
  <edit name="autohint" mode="assign"><bool>false</bool></edit>
  <edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
  <edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>

使用非AA:

编辑/etc/fonts/fonts.conf,加入

<match target="font">
  <test name="family"><string>Vera Sans YuanTi</string></test>
  <edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
  <test name="family"><string>Vera Sans YuanTi Mono</string></test>
  <edit name="globaladvance"><bool>false</bool></edit>
</match>

<match target="font">
  <edit name="antialias"><bool>true</bool></edit>
  <edit name="hinting"><bool>false</bool></edit>
  <edit name="autohint"><bool>false</bool></edit>
</match>

<match target="font">
  <test name="pixelsize" compare="more_eq"><double>12</double></test>
  <test name="pixelsize" compare="less_eq"><double>16</double></test>
  <edit name="antialias"><bool>false</bool></edit>
  <edit name="hinting"><bool>true</bool></edit>
  <edit name="autohint"><bool>false</bool></edit>
</match>


最终效果可以查看linuxfans下载页面的预览图.

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-08-22  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 37011
  • 日志数: 95
  • 图片数: 1
  • 书签数: 1
  • 建立时间: 2006-08-21
  • 更新时间: 2007-02-24

RSS订阅

Open Toolbar