Files
gridcraft/crates/engine/src/cmd
Dylan M. Taylor a305229287 PDF export: wrap text with running widths (#3208)
wrap_lines split an over-long word by re-measuring and copying the
rest of the word for every piece it cut, and only checked its line
limit once the word was done, so one long word in a narrow text box
cost word length x pieces. Each new word also re-measured the whole
line built so far.

Line and piece widths are now running sums of glyph widths (the same
sum text_width makes), so every character is measured once, and the
line limit is checked while a word is being split. The lines produced
are unchanged; a test compares them with the old wrapper.
2026-11-03 16:11:47 -05:00
..
2026-11-02 22:33:26 -05:00
2026-11-03 09:55:38 -05:00
2026-11-02 05:08:06 -05:00
2026-11-03 09:55:39 -05:00
2026-10-30 15:42:10 -04:00
2026-11-02 22:33:26 -05:00
2026-11-02 05:08:06 -05:00
2026-11-01 12:00:09 -05:00