LinuxSir.cn,穿越时空的Linuxsir!

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

sid里的firefox不支持中文粗体吗?

[复制链接]
发表于 2006-8-15 13:53:35 | 显示全部楼层 |阅读模式
cairo,pango这些都是sid的,firefox1.5.0.6可惜中文没有粗体,
1.在firefox里选wqy的点阵,不行没粗体
2.老办法用firefly的libXft,也不行
3.改了几次font.conf也没效果
还有firefox菜单的字体和其他gtk程序都不一样,怎么设置?
发表于 2006-8-16 11:25:10 | 显示全部楼层
把这段加进~/.fonts.conf文件中试试看,我的就是这样的
  1. <!--
  2.         为没有粗体的中文字体使用合成粗体
  3. -->
  4.     <match target="font" >
  5.         <test name="family" compare="contains" >
  6.                 <string>Song</string>
  7.                 <string>Sun</string>
  8.                 <string>Kai</string>
  9.                 <string>Ming</string>
  10.         </test>
  11.         <test target="pattern" name="weight" compare="more_eq">
  12.                 <int>180</int>
  13.         </test>
  14.                 <edit name="embolden" mode="assign" >
  15.                 <bool>true</bool>
  16.         </edit>
  17.     </match>
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-8-16 16:09:09 | 显示全部楼层
如果其他地方能显示粗体,请确认/etc/fonts/fonts.conf中的这段,其中的200改成180:

  1. <!--
  2. Synthetic emboldening for fonts that do not have bold face available
  3. -->

  4.         <match target="font">
  5.                 <!-- check to see if the font is just regular -->
  6.                 <test name="weight" compare="less_eq">
  7.                         <int>100</int>
  8.                 </test>
  9.                 <!-- check to see if the pattern requests bold -->
  10.                 <test target="pattern" name="weight" compare="more_eq">
  11.                         <int>[color="Red"]200[/color]</int>
  12.                 </test>
  13.                 <!-- set the embolden flag -->
  14.                 <edit name="embolden" mode="assign">
  15.                         <bool>true</bool>
  16.                 </edit>
  17.         </match>
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-8-16 19:11:04 | 显示全部楼层
如果是用libXft的话
在 ~/.mozilla/firefox/rc 裡面寫一行
MOZ_DISABLE_PANGO=
重新启动firefox就行了
回复 支持 反对

使用道具 举报

发表于 2006-8-16 19:14:16 | 显示全部楼层
1.5.0.6 的 firefox  很怪的,pango 关不掉。
可以试试用 testing 里的 1.5.0.4 版
回复 支持 反对

使用道具 举报

发表于 2006-8-16 20:05:47 | 显示全部楼层
如果屏蔽了pango, 针对某些字体某些大小范围内AA开关就无效了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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