After upgrading to media-libs/freetype-2.6.5[+infinality] from 2.6.3-r1 my fonts started looking way worse (as if infinality isn't working). I'm also using infinality-ultimate-meta, but I tried without it as well and got the same results. Looking online I see that arch folks patched up freetype to be configured via environment variables: https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/freetype2&id=baafb297df7cff0441bba0684b47b096c7bd294c It looks like the gentoo ebuild retains: #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) in ftoption.h which causes the v40 interpreter to be selected by the driver in ttobj.c #ifdef TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL driver->interpreter_version = TT_INTERPRETER_VERSION_40; #endif I think the gentoo ebuild should patch this out so the VERSION_38 interpreter is selected for USE +infinality and the VERSION_40 interpreter is selected for USE +cleartype_hinting. Unfortunately I tried this way of patching, and while it helped (fonts looked better) it still didn't achieve the same quality as freetype 2.6.3 did. There's also a related looking funtoo bug: https://bugs.funtoo.org/browse/FL-3268
Created attachment 442202 [details, diff] freetype-2.6.5 hinting 0..3 Yes, +infinality & +cleartype_hinting must be cumulative, but TT_CONFIG_OPTION_SUBPIXEL_HINTING=0 (or just defined) is looks option too. This is too subjective, so you can try attached ebuild patch and 4 combinations: USE="hinting -infinality -cleartype_hinting" USE="hinting infinality -cleartype_hinting" USE="hinting -infinality cleartype_hinting" USE="hinting infinality cleartype_hinting"
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66953420fd03b7ea1ed815e1db08d76737a5bbb8 commit 66953420fd03b7ea1ed815e1db08d76737a5bbb8 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-03-27 13:27:42 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-03-29 08:06:15 +0000 profiles: Mask media-libs/fontconfig-infinality +friends for removal Dead upstream. Bug: https://bugs.gentoo.org/550592 Bug: https://bugs.gentoo.org/589800 Bug: https://bugs.gentoo.org/605516 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> profiles/package.mask | 9 +++++++++ 1 file changed, 9 insertions(+)