|
|
用的是simsun,默认的fontconfig里已经有了 embolden 和 slant , 如下:- <!--
- Artificial oblique for fonts without an italic or oblique version
- -->
- <match target="font">
- <!-- check to see if the font is roman -->
- <test name="slant">
- <const>roman</const>
- </test>
- <!-- check to see if the pattern requested non-roman -->
- <test target="pattern" name="slant" compare="not_eq">
- <const>roman</const>
- </test>
- <!-- multiply the matrix to slant the font -->
- <edit name="matrix" mode="assign">
- <times>
- ......
- <!--
- Synthetic emboldening for fonts that do not have bold face available
- -->
- <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>200</int>
- </test>
- <!-- set the embolden flag -->
- <edit name="embolden" mode="assign">
- <bool>true</bool>
- </edit>
- </match>
复制代码
但系统中文就是没有粗体和斜体,英文有,见图,本来这个firefox标题应该是粗体的,大家知道怎么解决?? |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|