diff --git a/src/parse_attributes.rs b/src/parse_attributes.rs index f717d68..7690412 100644 --- a/src/parse_attributes.rs +++ b/src/parse_attributes.rs @@ -196,10 +196,10 @@ pub fn set_attribute( ("text_multiline_alignment", "right") if text.is_some() => { text.unwrap().justify = JustifyText::Right; } - ("text_size", value) if text.is_some() => { + ("font_size", value) if text.is_some() => { text.unwrap().sections[0].style.font_size = parse_f32(value); } - ("text_color", value) if text.is_some() => { + ("color", value) if text.is_some() => { text.unwrap().sections[0].style.color = parse_color(value); } ("image_asset_path", value) if image.is_some() => {