使用道具 举报
Post by FunBOY 怎么用了之后,firefox里面的英文字体有些发虚阿
Post by cocojumbal me 2. 试试我的这个: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/local.conf file for local customizations --> <fontconfig> <dir>/usr/share/fonts</dir> <!-- <dir>/usr/share/fonts/ttf/zh_CN</dir> --> <!-- Enable sub-pixel rendering <match target="font"> <test qual="all" name="rgba"> <const>unknown</const> </test> <edit name="rgba" mode="assign"> <const>rgb</const> </edit> </match> --> <!-- Add by Firefly(firefly@firefly.idv.tw) --> <match target="font"> <edit name="embeddedbitmap" mod="assign"> <bool>true</bool> </edit> </match> <!-- Add by Firefly(firefly@firefly.idv.tw) Most of Asian fonts can't explain by freetype2, so,if these fonts have dual width(half/full) and monospacing, you need to disable globaladvance. --> <match target="font"> <test compare="more_eq" name="spacing"> <const>dual</const> </test> <edit mode="assign" name="globaladvance"> <bool>false</bool> </edit> </match> <!-- Add by firefly@firefly.idv.tw Artificial bold for fonts without a bold version. --> <match target="font"> <!-- check to see if the pattern requested> "medium" --> <test compare="more" target="pattern" name="weight"> <const>medium</const> </test> <!-- pretend the font is bold now --> <edit mode="assign" name="weight"> <const>bold</const> </edit> </match> <!-- default settings for all fonts. --> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> <edit mode="assign" name="hint"> <bool>true</bool> </edit> <edit mode="assign" name="autohint"> <bool>false</bool> </edit> </match> <match target="font"> <test compare="contains" target="pattern" name="lang"> <string>zh-cn</string> <string>zh-tw</string> <string>ja</string> <string>ko</string> </test> <test compare="eq" name="spacing"> <const>mono</const> </test> <edit mode="assign" name="globaladvance"> <bool>false</bool> </edit> </match> <!-- Add by firefly@firefly.idv.tw --> <match target="font"> <test compare="contains" name="lang"> <string>zh-cn</string> <string>zh-tw</string> <string>ja</string> <string>ko</string> </test> <edit mode="assign" name="hint"> <bool>true</bool> </edit> <edit mode="assign" name="autohint"> <bool>false</bool> </edit> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> <edit mode="assign" name="usegamma"> <if> <less> <name>pixelsize</name> <double>20</double> </less> </if> <bool>true</bool> </edit> </match> <!-- set the prefer fonts --> <alias> <family>serif</family> <prefer> <family>Verdana</family> <family>Tahoma</family> <family>SimSun</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>Verdana</family> <family>Tahoma</family> <family>SimSun</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Verdana</family> <family>Tahoma</family> <family>SimSun</family> </prefer> </alias> <!-- these 2 sections below are modified from Magic's --> <match target="font" > <test name="family" compare="eq"> <string>SimSun</string> <string>NSimSun</string> <string>Tahoma</string> <string>Verdana</string> </test> <test compare="more" name="size" qual="any" > <double>8</double> </test> <test compare="less" name="size" qual="any" > <double>17</double> </test> <edit mode="assign" name="antialias" > <bool>false</bool> </edit> </match> <match target="font" > <test name="family" compare="eq"> <string>SimSun</string> <string>NSimSun</string> <string>Tahoma</string> <string>Verdana</string> </test> <test compare="more" name="pixelsize" qual="any" > <double>8</double> </test> <test compare="less" name="pixelsize" qual="any" > <double>17</double> </test> <edit mode="assign" name="antialias" > <bool>false</bool> </edit> </match> <config> <!-- Add by Firefly (firefly@firefly.idv.tw) Output non English/Latin family name. --> <familyoutput> <!--<const>auto</const>--> <const>englishonly</const> <!-- <const>any</const> --> </familyoutput> </config> </fontconfig>复制代码
本版积分规则 发表回复 回帖后跳转到最后一页