Duployan-Regular exhausts the work allowance on all 14 nonempty lines
of perf/texts/duployan.txt. A broader 643-input sample adds words, single characters and repeated
words: these need up to 478K units for short inputs and about 121K per
character for longer words.
Raise the per-character work and length allowances, and clamp the work
calculation in 64-bit arithmetic before assigning the signed counter.
Use a 5M-unit floor and 1.25M units per character, giving at least
10.3x measured work headroom. Keep the arithmetic ceiling finite.
Add a reduced valid Duployan regression, preserving its OFL license,
and exercise the larger allowance's overflow boundary. Enlarge the
adversarial shaping inputs so exhaustion remains covered.
Set the overflow test buffer to Unicode explicitly, fixing assertion
failures reported by the original PR bots.
Tested with assertions enabled and the full configured Meson suite. The original complete
audit covered 1,078,682 shaping runs across all 15 fonts.
Assisted-by: Codex (OpenAI)
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.
Duployan-Regular.dist.otf is reduced from Duployan-Regular.otf in
https://github.com/harfbuzz/harfbuzz-monster-fonts at
5490d33a1a83ea703742aacf3a6960a9fbcd063b, licensed under OFL 1.1.
It was generated with hb-subset --layout-features=dist --no-hinting
--name-IDs+=13,14
--text='𛱇𛰣 𛰂𛱆 𛰆𛱄𛰉𛰅𛰋𛱁𛰄𛰃'. The retained dist lookups exercise the
shaping work budget on a valid, complex font.