mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
PDF import: letter-spaced text keeps its word spaces
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>
This commit is contained in:
committed by
bflatastic
co-authored by
Claude Opus 5.5
parent
398c6316d9
commit
52b63e2198
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user