adding text_svg to build text out of svgs

This commit is contained in:
Chris Cochrun 2025-03-27 09:38:57 -05:00
parent 89ec3145d1
commit 2b92b9b792
3 changed files with 28 additions and 1 deletions

26
src/ui/text_svg.rs Normal file
View file

@ -0,0 +1,26 @@
use cosmic::iced::Font;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct TextSvg {
text: String,
font: Font,
shadow: Shadow,
stroke: Color,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Color {}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Shadow {
offset_x: i16,
offset_y: i16,
spread: u16,
color: Color,
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Stroke {
size: u16,
color: Color,
}