I fixed the excessive emboldening bug by modifying the last step of computing the emboldening amount: divide by the emRatio, as FT_Outline_EmboldenXY or at least emboldening inside the autohinter apparently depends on the units per EM of the font. This also fixed something else: fonts with units per EM below 1000 were emboldened excessively, above 1000 were emboldened too lightly.

I think the code can be reviewed now. Werner? :)

https://github.com/madig/freetype2/tree/stem-darkening-autohinter

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to