commit | c6006a7f8c31cd8e7dddad58894e1ba6c87e1362 | [log] [tgz] |
---|---|---|
author | Cosimo Lupo <clupo@google.com> | Thu Mar 21 12:16:54 2019 +0000 |
committer | Cosimo Lupo <clupo@google.com> | Thu Mar 21 12:16:54 2019 +0000 |
tree | 68a2150030558d0be8c95415ef8d5602b11c3beb | |
parent | d2c462a0fb2e9a70da934983f2a827a7c4346cfa [diff] |
[glyf] remove_hinting should del program from composite glyph Unlike simple glyphs, which always have 'program' attribute (even when empty, with no instructions) in composite glyphs, it's the presence of 'program' attribute that determines whether the optional WE_HAVE_INSTRUCTIONS component flag is set or not. Thus, the trim method (with remove_hinting=True) should delete the attribute for composite glyphs. Fixes https://github.com/fonttools/fonttools/issues/1550