mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
CID-keyed CFF charsets contain CIDs, not the standard SIDs needed by seac. Interpreting the invalid operator can therefore retain unrelated glyphs when their CIDs collide with the component SIDs from StandardEncoding. Reject CID-keyed fonts in get_seac_components so both subset closure and dependency collection skip these invalid lookups. Add a synthetic CID font with colliding CIDs and check that only .notdef and the requested glyph enter the subset plan. The regression fails before the fix with four retained glyphs instead of two. All 294 Meson tests pass, including the subset and API suites. Assisted-by: OpenAI Codex
cmap-format12-only files created by ttx & remove all other cmap entries Inconsolata-Regular.abc.widerc.ttf has the hmtx width of "c" set to 600; everything else is 500. Subsetting out c should reduce numberOfHMetrics to 1. chromacheck-* fonts are from https://github.com/RoelN/ChromaCheck/tree/master/fonts and licensed under MIT by Roel Nieskens and Google. RanaKufi-Regular.subset.otf is from https://github.com/alif-type/rana-kufi/ but the subset is licensed for us in MIT for the project use. glyphs.ttf is from https://github.com/RazrFalcon/ttf-parser/blob/337e7d1/tests/fonts/glyphs.ttf Estedad-VF.ttf, licensed under OFL 1.1, is from https://github.com/aminabedi68/Estedad graphite2-expansion.ttf is a synthetic three-glyph font generated by ../generate-graphite2-expansion-font.py. Its Graphite substitution rule expands each "a" to 41 glyphs, for testing buffer growth failure.