当前时区 GMT+8, 现在时间是 2008-7-5 07:02 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: fontconfig测试条件请教
baif
银牌会员
Rank: 6Rank: 6


UID 17498
精华 1
积分 2134
帖子 866
阅读权限 70
注册 2003-2-19
来自 China
状态 离线
发表于 2007-11-14 10:18  资料  短消息  加为好友  ICQ 状态
fontconfig测试条件请教

以下代码:

    26  <match target="font" >
    27   <test compare="contains" name="lang" >
    28    <string>zh-cn</string>
    29    <string>zh-tw</string>
    30    <string>ja</string>
    31    <string>ko</string>
    32   </test>
    33   <test compare="more_eq" name="size" qual="any" >
    34    <double>8</double>
    35   </test>
    36   <test compare="less_eq" name="size" qual="any" >
    37    <double>12</double>
    38   </test>
    39   <edit mode="assign" name="antialias" >
    40    <bool>false</bool>
    41   </edit>
    42  </match>

希望能把条件加上:
某些字体除外;
某些字体的某些style除外。

请教如何写。谢谢。

顶部
baif
银牌会员
Rank: 6Rank: 6


UID 17498
精华 1
积分 2134
帖子 866
阅读权限 70
注册 2003-2-19
来自 China
状态 离线
发表于 2007-11-19 13:02  资料  短消息  加为好友  ICQ 状态
自已解答一下吧,感谢Kanker

<match target="font" >
<test compare="contains" name="lang">
  <string>zh</string>
</test>
<test equal="any" name="family" compare="not_eq">
   <string>serif</string>
</test>
<test equal="amy" name="family" compare="not_eq">
   <string>AR PL ZenKai Uni</string>
</test>
<test equal="any" name="family" compare="not_eq">
  <string>文鼎PL中楷Uni</string>
  </test>
<test compare="more_eq" name="size" qual="any" >
  <double>8</double>
</test>
<test compare="less_eq" name="size" qual="any" >
  <double>12</double>
  </test>
<test compare="more_eq" name="pixelsize" qual="any" >
  <double>12</double>
</test>
<test compare="less_eq" name="pixelsize" qual="any" >
  <double>16</double>
</test>
<edit mode="assign" name="antialias" >
  <bool>false</bool>
</edit>
</match>


顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP