LinuxSir.cn,穿越时空的Linuxsir!

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

中文没有模拟粗体和斜体,why?

[复制链接]
发表于 2006-11-23 00:26:07 | 显示全部楼层 |阅读模式
用的是simsun,默认的fontconfig里已经有了 embolden 和 slant , 如下:
  1. <!--
  2. Artificial oblique for fonts without an italic or oblique version
  3. -->
  4.         <match target="font">
  5.                 <!-- check to see if the font is roman -->
  6.                 <test name="slant">
  7.                         <const>roman</const>
  8.                 </test>
  9.                 <!-- check to see if the pattern requested non-roman -->
  10.                 <test target="pattern" name="slant" compare="not_eq">
  11.                         <const>roman</const>
  12.                 </test>
  13.                 <!-- multiply the matrix to slant the font -->
  14.                 <edit name="matrix" mode="assign">
  15.                         <times>
  16. ......
  17. <!--
  18. Synthetic emboldening for fonts that do not have bold face available
  19. -->
  20.         <match target="font">
  21.                 <!-- check to see if the font is just regular -->
  22.                 <test name="weight" compare="less_eq">
  23.                         <int>100</int>
  24.                 </test>
  25.                 <!-- check to see if the pattern requests bold -->
  26.                 <test target="pattern" name="weight" compare="more_eq">
  27.                         <int>200</int>
  28.                 </test>
  29.                 <!-- set the embolden flag -->
  30.                 <edit name="embolden" mode="assign">
  31.                         <bool>true</bool>
  32.                 </edit>
  33.         </match>
复制代码

但系统中文就是没有粗体和斜体,英文有,见图,本来这个firefox标题应该是粗体的,大家知道怎么解决??

本帖子中包含更多资源

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

x
发表于 2006-11-23 09:37:58 | 显示全部楼层
粗体是老问题了

                <test target="pattern" name="weight" compare="more_eq">
                        <int>200</int>

这里改成180

没有斜体就不知道了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-23 10:02:55 | 显示全部楼层
原来如此,谢谢。

在fedora-6里没有问题,看来应该看看fc6的font.conf
回复 支持 反对

使用道具 举报

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

本版积分规则

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