LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1116|回复: 5

一种简单的字体美化方法

[复制链接]
发表于 2004-12-31 13:46:58 | 显示全部楼层 |阅读模式
在/etc/fonts/fonts.conf中加入:
[PHP]

<match target="font" >
  <test compare="more" name="size" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="size" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>

<match target="font" >
  <test compare="more" name="pixelsize" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="pixelsize" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>

[/PHP]
 楼主| 发表于 2005-1-2 16:05:04 | 显示全部楼层
前后改了好几遍,呵呵,自己顶一下
发表于 2005-1-3 13:57:37 | 显示全部楼层
有图吗?
 楼主| 发表于 2005-1-3 23:06:01 | 显示全部楼层
字体方正醒目,就是没有粗体

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-1-4 12:45:18 | 显示全部楼层
再改一下吧,英文还是AA的好,那锯齿难受
发表于 2005-1-8 11:30:34 | 显示全部楼层
Post by dyte100
在/etc/fonts/fonts.conf中加入:
[PHP]

<match target="font" >
  <test compare="more" name="size" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="size" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>

<match target="font" >
  <test compare="more" name="pixelsize" qual="any" >
   <double>8</double>
  </test>
  <test compare="less" name="pixelsize" qual="any" >
   <double>17</double>
  </test>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
</match>

[/PHP]


这是php代码吗?怎么像是xml
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表