|
发表于 2012-2-8 10:09:19
|
显示全部楼层
不过我用的是freetype2-infinality,需要先设环境变量:- export INFINALITY_FT_FILTER_PARAMS="16 20 38 20 16"
- export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=22
- export INFINALITY_FT_STEM_FITTING_STRENGTH=22
- export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=25
- export INFINALITY_FT_AUTOFIT_STEM_SNAP_LIGHT=true
- export INFINALITY_FT_AUTOFIT_EMBOLDEN_LIGHT=true
- export INFINALITY_FT_PSEUDO_GAMMA="100 70"
- export INFINALITY_FT_AUTOFIT_ADJUST_HEIGHTS=true
- export INFINALITY_FT_ENHANCED_EMBOLDEN=true
- export INFINALITY_FT_EMBOLDEN_MAINTAIN_WIDTH=true
- export INFINALITY_FT_AUTO_AUTOHINT=true
- export INFINALITY_FT_AUTOFIT_FORCE_SLIGHT_HINTING=true
复制代码 然后是.fonts.conf配置文件:- <?xml version='1.0'?>
- <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
- <fontconfig>
- <match target="font">
- <edit mode="assign" name="embeddedbitmap">
- <bool>false</bool>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="hinting">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="autohint">
- <bool>true</bool>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="hintstyle">
- <const>hintslight</const>
- </edit>
- </match>
- <dir>~/.fonts</dir>
- <match target="font">
- <edit mode="assign" name="lcdfilter">
- <const>lcdlegacy</const>
- </edit>
- </match>
- <dir>/home/realasking/.Fontmatrix/Activated</dir>
- <match target="font">
- <edit mode="assign" name="rgba">
- <const>none</const>
- </edit>
- </match>
- <match target="font">
- <edit mode="assign" name="antialias">
- <bool>true</bool>
- </edit>
- </match>
- <match target="pattern" name="family" >
- <test name="family" qual="any">
- <string>宋体</string>
- <string>SimSun</string>
- <string>SimHei</string>
- </test>
- <edit mode="assign" name="family">
- <string>文泉驿微米黑</string>
- </edit>
- </match>
- </fontconfig>
复制代码 谨供参考。 |
|