As soon as you switch to a new size, simply recompute the values.
Done! I'm almost there. I have extended AF_FaceGlobals to hold:
...
FT_UShort stem_darkening_for_ppem;
FT_Posdarken_x;
...
and modified af_loader_load_g() to do:
...
error = FT_Load_Glyph( face, glyph_index, flags );
This effect:
https://www.flickr.com/photos/behdad/34769511/
still happens in my limited testing.
This looks like a text layout problem, which was traditionally
outside of FreeType's responsibilities.
Hmm. Interesting point of view. I haven't considered that yet.
Doing nothing and
This effect:
https://www.flickr.com/photos/behdad/34769511/
still happens in my limited testing.
This looks like a text layout problem, which was traditionally outside
of FreeType's responsibilities. The extra ink is a result of bitmap
addition, which would be swept under the rug by strong