better text_stroke
This commit is contained in:
parent
7f66f33462
commit
e7a160272d
1 changed files with 1 additions and 2 deletions
|
@ -218,7 +218,7 @@ impl TextSvg {
|
||||||
};
|
};
|
||||||
let stroke = if let Some(stroke) = &self.stroke {
|
let stroke = if let Some(stroke) = &self.stroke {
|
||||||
format!(
|
format!(
|
||||||
"stroke=\"{}\" stroke-width=\"{}px\" paint-order=\"stroke\"",
|
"stroke=\"{}\" stroke-width=\"{}px\" stroke-linejoin=\"arcs\" paint-order=\"stroke\"",
|
||||||
stroke.color, stroke.size
|
stroke.color, stroke.size
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
@ -259,7 +259,6 @@ Svg::new(Handle::from_memory(
|
||||||
}
|
}
|
||||||
|
|
||||||
fn text_spans(&self) -> Vec<String> {
|
fn text_spans(&self) -> Vec<String> {
|
||||||
let total_lines = self.text.lines().count();
|
|
||||||
self.text
|
self.text
|
||||||
.lines()
|
.lines()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue