mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-21 18:04:03 +01:00
Area type of one frame whose lines are each a little taller here than in the file (a paragraph of CJK type in a fallback font) lost its last line: the drift adds up over the paragraph, so the last line ends more than a descent past the frame's bottom, and fit_source_lines, which grows the frame by the lines' deepest descent, can't bring it back. vectorcraft_text::fit_lines grows the frame from its bottom by the least that lays out as many lines as the file sets in it (or all of the text, when it needs fewer), found by bisection. Story::fit_last_lines tries fit_source_lines first, as before, then fit_lines; it still only fits a story's one area frame, and the warning is unchanged.