mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
The subsetter cannot rewrite tables that refer to glyphs. That includes legacy kern, AAT (ankr, bsln, just, kern, kerx, lcar, mort, morx, opbd, prop), Graphite (Glat, Gloc, Silf), JSTF, SVG, LTSH, EBDT/EBLC, and Apple's Zapf, bdat/bloc, gcid, and hvgl/hvpm tables. When one of these is retained it is passed through unchanged, so renumbering glyphs makes its glyph ids stale. Implicitly enable retain-gids in that case. Make the plan use its own flags after this adjustment so every consumer sees the effective retain-gids state, and add regression tests covering AAT, Graphite, and the other unsubsettable glyph tables. Assisted-by: DeepSeek