Closed bohoomil closed 8 years ago
@bohoomil and @mviikki16. Looking at the SKIA code, it doesn't call the plain FT_Init_FreeType function, but rather the custom FT_New_Library and then FT_Add_Default_Modules. I wonder if the ennvars were initialized there too with ftinf_env() WebKit would start working with Infinality settings again.
Indeed, ftinf_env must be called for Infinality to be active, a call at the end of FT_New_Library should solve the issue. It is also possible to update ftinf_env to skip multiple initialisations (in cases where it gets called more than once) but beside the little wasted computation that's far less of a problem than when no call to it is done at all.
Here's a small and quick update to latest patch version (inf_patch_all.txt) to add the reading of settings also from FT_New_Library and skip multiple calls of ftinf_env.
and this is a bit of cleanup for redundant code.
how should these patches be applied ?
@mviikki16 Thank you very much!
@perfect7gentleman I'll prepare the patches soon, please wait a little bit.
The problem was originally reported by Perfect Gentleman and SpaceCadet on Arch Linux forum:
I reproduced the problem and here are the screenshots:
freetype2-iu
, rev.2.6.2 with the new Infinality patch:freetype2-iu
, rev.2.6.2 with the old Infinality patch: