|
发表于 2011-12-26 20:34:17
|
显示全部楼层
Post by shentianhua;2157650
最新的包字体渲染感觉不如上一个~~我又降回来了~
freetype2-infinality有些参数可以调整,降回旧版前,试试修改参数说不定有意外收获。不同设罝导致的渲染效果差异不小。保存参数的文件是infinality-settings.sh,安装后的位置在 /etc/profile.d/ 。里边可调整的参数有:
- INFINALITY_FT_FILTER_PARAMS
- INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH
- INFINALITY_FT_FRINGE_FILTER_STRENGTH
- INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH
- INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH
- INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH
- INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH
- INFINALITY_FT_STEM_ALIGNMENT_STRENGTH
- INFINALITY_FT_STEM_FITTING_STRENGTH
- INFINALITY_FT_GAMMA_CORRECTION
- INFINALITY_FT_BRIGHTNESS
- INFINALITY_FT_CONTRAST
- INFINALITY_FT_USE_VARIOUS_TWEAKS
- INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS
- INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT
- INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE
- INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS
复制代码
每一个参数的说明都能在infinality-settings.sh里找到。嫌麻烦的话,infinality-settings.sh已经预设了十来种组合好的参数,例如:
- DEFAULT - Use above settings. A compromise that should please most people.
- OSX - Simulate OSX rendering
- UBUNTU - Simulate UBUNTU rendering
- LINUX - Generic "Linux" style - no snapping or certain other tweaks
- WINDOWS - Simulate Windows rendering
- VANILLA - Just subpixel hinting
- CUSTOM - Your own choice. See below
- ----- Infinality styles -----
- CLASSIC - Infinality rendering circa 2010. No snapping.
- NUDGE - CLASSIC with lightly stem snapping and tweaks
- PUSH - CLASSIC with medium stem snapping and tweaks
- SHOVE - Full stem snapping and tweaks without sharpening
- SHARPENED - Full stem snapping, tweaks, and Windows-style sharpening
- INFINALITY - Settings I use
复制代码
只需在 USE_STYLE 里填上以上任一选项,就能使用相应的渲染模式,但别忘了修改后运行下source。 |
|