Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589800 - media-libs/freetype-2.6.5 +infinality font rendering regression
Summary: media-libs/freetype-2.6.5 +infinality font rendering regression
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2016-07-27 05:51 UTC by Mark R. Pariente
Modified: 2021-03-29 08:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
freetype-2.6.5 hinting 0..3 (freetype-2.6.5-4hinting.patch,1.80 KB, patch)
2016-08-01 15:58 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark R. Pariente 2016-07-27 05:51:47 UTC
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
Comment 1 Denis Kaganovich 2016-08-01 15:58:25 UTC
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"
Comment 2 Larry the Git Cow gentoo-dev 2021-03-29 08:06:26 UTC
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(+)