|
|
用opera时 全部使用simsun
会出现一部分英文或者数字 很难看(如图) 请问应该如何解决
我的local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/myfont.conf -->
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/local</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<match target="font">
<test name="family">
<string>SimHei</string>
<string>SimSun</string>
<string>Tahoma</string>
</test>
<test name="pixelsize" compare="more_eq">
<double>1</double>
</test>
<test name="pixelsize" compare="less_eq">
<double>17</double>
</test>
<edit name="antialias">
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<!--
English portion substitution
-->
<match target="font" >
<test name="family" >
<string>SimSun</string>
<string>SimHei</string>
<string> MingLiU</string>
<string>宋体</string>
</test>
<edit name="family" mode="prepend" binding="strong" >
<string>Tahoma</string>
</edit>
</match>
<!--
The dual-width Asian fonts (spacing=dual) are not rendered correctly,
apparently FreeType forces all widths to match. Trying to disable the
width forcing code by setting globaladvance=false alone doesn't help.
As a brute force workaround, also set spacing=proportional, i.e. handle
them as proportional fonts:
-->
<match target="font" >
<test target="pattern" name="lang" compare="contains" >
<string>zh</string>
<string>ja</string>
<string>ko</string>
</test>
<test name="spacing" compare="eq">
<const>dual</const>
</test>
<edit name="spacing" mode="assign" >
<const>proportional</const>
</edit>
<edit name="globaladvance" mode="assign" >
<bool>false</bool>
</edit>
</match>
</fontconfig> |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|