afdko icon indicating copy to clipboard operation
afdko copied to clipboard

[tx] UFO read/write does not correctly handle double encoding

Open punchcutter opened this issue 2 years ago • 2 comments

This test UFO contains glyphs that have multiple Unicode values. double-encoding.ufo.zip

A: 0041 and 55E0 (makes no sense, just a test) space: 0020 and 00A0

makeotf -f double-encoding.ufo -> The second value is lost. It should not be lost.

fontmake -u double-encoding.ufo -o otf -> Both values are correctly mapped.

punchcutter avatar May 23 '23 00:05 punchcutter

makeotf’s default mode is not expected to do anything fancy – as far as I know, code point assignment only happens via a GlyphOrderAndAliasDB file (and only in release mode).

I think it’s time to move past this approach – use what’s in the UFO if there’s no external overrides, and use overrides if they’re present (the same would be applicable for many other data fields, like the version number).

frankrolf avatar May 23 '23 20:05 frankrolf

When running makeotf, GlyphOrderAndAliasDB or cmap file can handle double encoding, but when tx -ufo option, there is no solution.

hatchzo avatar May 24 '23 00:05 hatchzo