GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
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(