LinuxSir.cn,穿越时空的Linuxsir!

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

FC5下粗体显示问题。。。

[复制链接]
发表于 2006-4-9 14:59:23 | 显示全部楼层 |阅读模式
原先字体很难看,后来添加了simsun字体,后显示好多了,也有粗体
但是还有相当一部分字体在显示的时候发虚
后来按照南北兄的一篇文章
http://fedora.linuxsir.cn/main/?q=node/22
升级了fontconfig freetype libXft
后字体发虚的问题完美的解决了,但是却不能显示粗体了。。
fonts.conf要怎么样修改下才能显示粗体呢。。

本帖子中包含更多资源

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

x
发表于 2006-4-9 20:30:22 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 20:36:26 | 显示全部楼层
恩,实在是对 Fontconfig Xft Freetype一无所知,
按照文章的中的做法去操作也会显得很盲目阿
回复 支持 反对

使用道具 举报

发表于 2006-4-9 20:59:57 | 显示全部楼层
用幼园的粗体在终端下面显示的字体很清楚。幼体一般不会出现发虚现象,因为字体本身就很均匀。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-9 21:07:28 | 显示全部楼层

问题成功解决,现在字体显示很好了。

把下面的加进/etc/fons/local.conf后
<!--  
配置粗体中文显示,要配合freetype-2.1.10,libxft-2.1.7,fontconfig-2.3.X
  -->

     <match target="font">
         <!-- check to see if the font is just regular -->
         <test name="weight" compare="less_eq">
             <int>100</int>
         </test>
         <!-- check to see if the pattern requests bold -->
         <test target="pattern" name="weight" compare="more_eq">
             <int>180</int>
         </test>
         <!-- set the embolden flag -->
         <edit name="embolden" mode="assign">
             <bool>true</bool>
         </edit>
     </match>
回复 支持 反对

使用道具 举报

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

本版积分规则

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