Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#35274 - [freetype2] 2.4.11: Enable Subpixel Hinting
Attached to Project:
Arch Linux
Opened by Jan Alexander Steffens (heftig) - Tuesday, 14 May 2013, 13:02 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 29 December 2014, 01:15 GMT
Opened by Jan Alexander Steffens (heftig) - Tuesday, 14 May 2013, 13:02 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 29 December 2014, 01:15 GMT
|
DetailsI would like to suggest enabling the new Subpixel Hinting feature of freetype2, which alters TrueType hinting behavior to be more like Microsoft Windows.
This dramatically improves rendering of late Microsoft-supplied fonts (such as Consolas and Segoe UI), but does not leave other TrueType fonts untouched. In some cases, rendering is subjectively worse. Still, I believe it's an overall win for rendering quality and worth enabling by default. This would revert https://bugs.archlinux.org/task/33148 . Patch: http://pkgbuild.com/~heftig/packages/freetype2-git/freetype-2.4.11-enable-sph.patch Before: http://pkgbuild.com/~heftig/screenshots/without-spr-segoe.png http://pkgbuild.com/~heftig/screenshots/without-spr-consolas.png http://pkgbuild.com/~heftig/screenshots/without-spr-dejavu.png http://pkgbuild.com/~heftig/screenshots/without-spr-arimo.png After: http://pkgbuild.com/~heftig/screenshots/with-spr-segoe.png http://pkgbuild.com/~heftig/screenshots/with-spr-consolas.png http://pkgbuild.com/~heftig/screenshots/with-spr-dejavu.png http://pkgbuild.com/~heftig/screenshots/with-spr-arimo.png |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Monday, 29 December 2014, 01:15 GMT
Reason for closing: Implemented
Additional comments about closing: Available (but not enabled by default).
Monday, 29 December 2014, 01:15 GMT
Reason for closing: Implemented
Additional comments about closing: Available (but not enabled by default).
The unhinted text has a width about half between the two renderings.
I've also written a patch that allows getting the old behavior back by setting the environment variable "FT2_NO_SUBPIXEL_HINTING", see http://pkgbuild.com/~heftig/packages/freetype2-git/env_FT2_NO_SUBPIXEL_HINTING.diff .
I suppose this means for a proper solution, at least fontconfig and perhaps other parts of the stack will have to learn how to set the version.
Should I leave the patch in for now? I haven't pushed anything yet as I wanted to wait for feedback.
@thestinger: That it how it *should* work, but I don't have time to dive into fontconfig.
SPH also makes some fonts render slightly fuzzy (e.g. DejaVu Sans). Making a pretty common Linux font like that render worse so that e.g. Segoe UI doesn't appear fuzzy doesn't seem like a good trade-off to me.
Now at home with in my desktop LCD, after identifiying freetype2 as the "culprit" package of the poor fonts rendering, I set the environment variable to 0 (even I didn't remembered to have set it to 1 a few days ago) and this doesn't disables hinting... fortunately, by looking at the source code of the patch, I see that it only tests for the variable presence. You have to NOT SET the variable at all.
I think that it may be a bit misleading that FT2_SUBPIXEL_HINTING=0 also *ENABLES* subpixel hinting.