[skrifa] CJK autohinting weirdness
Some confusing bits in the FreeType CJK autohinter.
-
Scaled/fitted values are never generated for stem widths so they're always 0. https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/afcjk.c#L661
-
There's an extra loop to detect round segments that is never executed because the pointer to the segments array is captured (as NULL) before the segments array is actually allocated (by the call to
af_latin_hints_compute_segments). https://gitlab.freedesktop.org/freetype/freetype/-/blob/57617782464411201ce7bbc93b086c1b4d7d84a5/src/autofit/afcjk.c#L808
We'll just match this behavior for now but should investigate later to see what's going on.
Sounds worth FreeType issues?