From e7a160272d58cb42a6b99a7fde4235f476cf220d Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 4 Jul 2025 06:54:21 -0500 Subject: [PATCH] better text_stroke --- src/ui/text_svg.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/text_svg.rs b/src/ui/text_svg.rs index 2cbc8c7..6dfa92e 100644 --- a/src/ui/text_svg.rs +++ b/src/ui/text_svg.rs @@ -218,7 +218,7 @@ impl TextSvg { }; let stroke = if let Some(stroke) = &self.stroke { format!( - "stroke=\"{}\" stroke-width=\"{}px\" paint-order=\"stroke\"", + "stroke=\"{}\" stroke-width=\"{}px\" stroke-linejoin=\"arcs\" paint-order=\"stroke\"", stroke.color, stroke.size ) } else { @@ -259,7 +259,6 @@ Svg::new(Handle::from_memory( } fn text_spans(&self) -> Vec { - let total_lines = self.text.lines().count(); self.text .lines() .enumerate()