From 5f89b05b7441ef819f9408c8592429d8d195d89b Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Mon, 2 Nov 2026 02:59:39 -0500 Subject: [PATCH] Format: the unmeasurable text path case sits past the geometry cap Co-Authored-By: Claude Fable 5.1 --- crates/format/src/fig/text_path.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/format/src/fig/text_path.rs b/crates/format/src/fig/text_path.rs index 8a93f7e49..90c631514 100644 --- a/crates/format/src/fig/text_path.rs +++ b/crates/format/src/fig/text_path.rs @@ -298,8 +298,9 @@ mod tests { }; assert_eq!(from_network(&many_lines, 1.0, 1.0, 0.5, true), Err("cannot be measured by text renderer")); + // Past the cap the builders hold their sizes to (`figcraft_geom::MAX_COORD`, inclusive). let huge = Network { - vertices: vec![vertex(0.0, 0.0), vertex(1e9, 0.0)], + vertices: vec![vertex(0.0, 0.0), vertex(2e9, 0.0)], segments: vec![segment(START_SEGMENT_STYLE, 0, 1, (0.0, 0.0), (0.0, 0.0))], ..Network::default() };