Fix #3623: a word gap between two sizes reads as a space in PDF import

PDF import measured each gap between two glyphs against the larger of
the line's first glyph size and the next glyph's. A word set beside a
much larger one, apart by positioning and no space glyph (a browser's
margin between two sizes), stayed under a fifth of that em: "≤ 4" at
20 pt and "hours" at 8 pt, 3.4 pt apart, came in as "≤ 4hours".

A gap is now measured against the smaller of the two glyphs beside it.
Lines in one size read their gaps as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Patrick Lenzen
2026-10-22 23:14:35 +07:00
committed by bflatastic
co-authored by Claude Opus 5.5
parent b35a6b1573
commit 6903bb7ef8
3 changed files with 32 additions and 4 deletions
File diff suppressed because one or more lines are too long