git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit8c1dfdb1677c8cb6dec1e8bff3f4d01d56fc3bb7
parenta968572f11
authorLucas Galante <[email protected]>
date2026-06-21 20:43
Increase estimate_width safety scaling factor to 1.30 to completely prevent clipping

 src/widget/display/text_label.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/widget/display/text_label.rs b/src/widget/display/text_label.rs
index 4c5faa6..5281181 100644
--- a/src/widget/display/text_label.rs
+++ b/src/widget/display/text_label.rs
@@ -20,7 +20,7 @@ impl TextLabel {
                 _ => 0.52,
             };
         }
-        (weight_sum * font_size * 1.15).ceil()
+        (weight_sum * font_size * 1.30).ceil()
     }
 
     pub fn curved_layout(