mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-25 10:39:01 -06:00
An added Arabic item was rejected once its distinct glyphs exceeded GLYPHS_PER_FONT * MAX_ARABIC_FONTS (3,840). The glyphs already split into 240-glyph Type 3 fonts, so that item-wide count was an allocation policy, not a limit of the format. Remove it: an item now gets one font per 240 distinct glyphs it needs. Per-font limits, the outline reads that happen before any object is added, and the output below the old limit are unchanged. The drawing core takes its outline source as a parameter, so the tests can run without the craft-fonts Arabic face. Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>