mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-29 12:56:47 -06:00
* M6: .fig import keeps the file's saved line breaks while the text and its box are unedited (#1236) The line breaker already keeps trailing spaces and the last glyph's letter spacing out of the fit test and doesn't round box widths; imported text wrapped a word early or mid-word because local fonts measure slightly differently from the file's. The import keeps the saved line starts (derivedTextData) on the text with the box width and a stable key of its layout content; layout follows them while both match and no line overflows its box by more than 3% (+1 px). * M6: local check that imported text wraps at the line breaks its file saved (#1236) Runs only when FIGCRAFT_FIG_SAMPLES names a folder of .fig files: each fixed-width text with saved breaks wraps there once imported, or falls back by the overflow slack; prints the counts.