Giang Nguyen
2b34554ac8
fix(text): fitHeadline sees wrapping in a frame one line tall
...
The layout drops lines that overflow an area frame vertically, so counting
the first paragraph's laid-out lines cannot see a wrapped second line
when the frame holds only one. The bisection then found every tracking
"one line" and ran to its 2000 ceiling, which spread the line far past the
frame (most glyphs clipped away) while the command reported success.
one_line now asks whether the first line reaches the end of the first
paragraph, which holds regardless of dropped overflow lines. Regression
test: area 240x50 at size 36 previously returned tracking 1999.9, now
fills the width (avail - w < 5) with the paragraph on one line.
2026-10-13 00:34:40 +07:00
..
2026-10-12 11:02:32 +07:00
2026-10-12 23:42:56 +07:00
2026-10-10 14:27:24 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 09:43:15 +07:00
2026-10-11 01:46:24 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 06:42:49 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:17 +07:00
2026-10-06 00:42:26 +07:00
2026-10-10 14:27:24 +07:00
2026-10-05 05:08:28 +07:00
2026-10-12 19:22:36 +07:00
2026-10-05 16:03:11 +07:00
2026-10-11 01:45:18 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:17 +07:00
2026-10-05 08:28:16 +07:00
2026-10-12 07:25:36 +07:00
2026-10-12 23:42:43 +07:00
2026-10-10 23:44:46 +07:00
2026-10-08 12:20:51 -07:00
2026-10-05 09:55:47 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 08:16:41 +07:00
2026-10-10 14:10:31 +07:00
2026-10-11 07:43:14 +07:00
2026-10-11 03:51:31 +07:00
2026-10-12 11:02:32 +07:00
2026-10-06 00:42:26 +07:00
2026-10-01 14:37:29 -04:00
2026-10-08 15:45:34 -07:00
2026-10-12 14:50:00 +07:00
2026-10-12 14:50:00 +07:00
2026-10-10 17:17:01 +07:00
2026-10-12 08:16:41 +07:00
2026-10-12 17:46:01 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 08:16:41 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 08:02:13 +07:00
2026-10-12 23:42:43 +07:00
2026-10-12 11:02:32 +07:00
2026-10-05 03:46:04 +07:00
2026-10-10 09:32:12 +07:00
2026-10-12 09:43:15 +07:00
2026-10-12 06:42:50 +07:00
2026-10-12 21:01:15 +07:00
2026-10-12 15:17:01 +07:00
2026-10-05 06:28:59 +07:00
2026-10-05 10:40:22 +07:00
2026-10-08 03:27:36 +07:00
2026-10-10 14:27:24 +07:00
2026-10-12 11:02:17 +07:00
2026-10-09 03:49:49 -04:00
2026-10-12 11:02:32 +07:00
2026-10-05 16:30:46 +07:00
2026-10-05 17:26:59 +07:00
2026-10-12 11:02:32 +07:00
2026-10-05 05:08:15 +07:00
2026-10-12 11:03:01 +07:00
2026-10-12 18:56:41 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 11:02:32 +07:00
2026-10-11 01:46:22 +07:00
2026-10-12 11:02:32 +07:00
2026-10-09 13:32:59 -07:00
2026-10-05 04:20:27 +07:00
2026-10-12 11:02:17 +07:00
2026-10-08 15:07:13 -07:00
2026-10-12 11:02:17 +07:00
2026-10-11 03:51:06 +07:00
2026-10-12 11:02:32 +07:00
2026-10-08 15:45:34 -07:00
2026-10-13 00:34:40 +07:00
2026-10-12 08:45:22 +07:00
2026-10-12 14:50:00 +07:00
2026-10-11 07:13:37 +07:00
2026-10-04 18:22:05 +07:00
2026-10-11 03:48:03 +07:00
2026-10-12 00:16:21 +07:00