mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
PDF import read every gap wider than a fifth of an em between two glyphs as a space. Letter-spaced type (Tc, or glyphs placed one by one with tracking) has such a gap between every pair of letters, so "OPEN DAILY" came in as "O P E N D A I L Y". A line now records every gap between its glyphs and decides which are spaces when it finishes: the spacing its letters share (the gap a third of the way up from the narrowest, when the line has three or more) is taken off each gap first. That shared spacing is at most half an em, so glyphs set wider apart, such as figures in columns, keep their spaces. Right-to-left lines and glyphs along a curve read their gaps as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>