LinuxSir.cn,穿越时空的Linuxsir!

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

突然发现Debian Etch不用打补丁已经可以支持粗体中文了

[复制链接]
发表于 2006-10-12 16:32:16 | 显示全部楼层 |阅读模式
我的~/.fonts.conf内容这样:

  1. <?xml version="1.0"?>
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  3. <fontconfig>
  4. <!--
  5. Small font needn't use antialias
  6. -->
  7.         <match target="font">
  8.             <test  name="lang" compare="contains">
  9.                 <string>zh-cn</string>
  10.                 <string>zh-tw</string>
  11.             </test>
  12.             <test qual="any" name="pixelsize" compare="more_eq">
  13.                 <double>11</double>
  14.             </test>
  15.             <test qual="any" name="pixelsize" compare="less_eq">
  16.                 <double>15</double>
  17.             </test>
  18.             <edit name="antialias" mode="assign">
  19.                 <bool>false</bool>
  20.             </edit>
  21.         </match>

  22. <!--
  23. synthetical bold
  24. -->
  25.         <match target="font">
  26.                 <!-- check to see if the font is just regular -->
  27.                 <test name="weight" compare="less_eq">
  28.                         <int>100</int>
  29.                 </test>
  30.                 <!-- check to see if the pattern requests bold -->
  31.                 <test target="pattern" name="weight" compare="more_eq">
  32.                         <int>180</int>
  33.                 </test>
  34.                 <!-- pretend the font is bold now , first for cario, second for libxft-->
  35.                 <edit name="weight" mode="assign">
  36.                         <const>bold</const>
  37.                 </edit>
  38.                 <edit name="embolden" mode="assign">
  39.                         <bool>true</bool>
  40.                 </edit>
  41.                
  42.         </match>

  43. </fontconfig>
复制代码

firefox的效果如附件中:

我安装了x-ttcidfont-conf,我安装的字体是文鼎细宋。

本帖子中包含更多资源

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

x
发表于 2006-10-12 16:56:44 | 显示全部楼层
我刚新通过debootstrap安装了sid,字体确实好多了
回复 支持 反对

使用道具 举报

发表于 2006-10-12 16:57:51 | 显示全部楼层
good , mark
回复 支持 反对

使用道具 举报

发表于 2006-10-12 17:40:28 | 显示全部楼层
难道。31r3版本对字体改进了。如果是那样的话,可是太好了。
回复 支持 反对

使用道具 举报

发表于 2006-10-12 20:36:43 | 显示全部楼层
我昨天用testing帮人安装, 确实已经支持软件粗体了.
回复 支持 反对

使用道具 举报

发表于 2006-10-13 17:35:09 | 显示全部楼层
有的字体要爮坡的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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