afdko icon indicating copy to clipboard operation
afdko copied to clipboard

otfautohint: Consider using Unicode mappings and substitutions (or other heuristics) for parameter configuration

Open skef opened this issue 3 years ago • 1 comments

As it stands psautohint makes font-wide choices, such as whether to attempt flex hints, based on heuristics that may not be reliable going forward, such as

    def isCID(self):
        return hasattr(self.topDict, "FDSelect")

in otfFont.py.

To the extent that CJK glyphs need different parameters it would be preferable to make that determination on a glyph level, either by looking at the code point or by analyzing properties of the path itself. That way in a primarily CJK font with some LGC glyphs the latter could be hinted appropriately, and vice-versa.

skef avatar Mar 30 '22 22:03 skef

Actually, if we move users towards using separate FDArray entries then parameterizing on the FDArray may be a good solution to this problem.

skef avatar Apr 01 '22 10:04 skef