mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-02 02:38:30 -06:00
The extents estimate a line's shaped width; the fonts measure it. Where the fonts decide by a cutoff the two could differ, so the extents now assume the real width is within a factor of 4 of the estimate and take the larger box unless the estimate is clear of the cutoff: - Fit text counts as stretched only when its fitted factor clears the fonts' cutoff by that factor; otherwise it is boxed unstretched. - A line of next to no width is left as it is by the fonts, so its box no longer reaches for the second point. - Aligned text shrunk into a short span is boxed at least as tall as its own height, which narrow characters reach. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>