googlefonts / gftools

Misc tools for working with the Google Fonts library
Apache License 2.0
242 stars 71 forks source link

Error with otf zones and ps autohint when AscenderHeight=CapsHeight #962

Closed RosaWagner closed 3 months ago

RosaWagner commented 3 months ago

Please tell me where to open issues related to postscript hinting if not here.

ERROR: In FDDict FDArray[0]. The top of zone AscenderHeight at 724 overlaps zone LcHeight with the bottom at 710.

Ascenders and Caps have the same height. I set up CapHeight=710+14 and AscenderHeight=710+0 to avoid overlapping. That is what works with Glyphs in this very common case. It doesn't seem to be a good move to remove the AscenderHeight value. The autohinter should remove the duplicated zone if there is one. It is also a bit strange that the names of the zones are confused in the error message.

simoncozens commented 3 months ago

psautohint/otfautohint is part of https://github.com/adobe-type-tools/afdko