mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 04:22:20 +00:00
Recognize text sizes each word from its own box and a guess at how much of the em its letters fill, so one phrase's words come out several points apart (9 to 15.6 pt on a LaTeX scan). Editing a phrase drew and saved every word at its own size. An invisible block's size is now the median of its words' sizes (TextBlock::phrase_size). The styled rewrite draws every run at it and scales each word's width calibration by its own size over the phrase's, so words keep the width the scan shows them at; the single-style rewrite (a new family or bold) uses it in place of the first word's size; and the inline editor lays each word out at it while typing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>