use alloc::string::String;
mod accessors;
mod from_style;
mod inheritance;
mod parsing;
mod scaling;
#[cfg(test)]
mod formatting_tests;
#[cfg(test)]
mod parse_tests;
#[cfg(test)]
mod resolution_tests;
#[cfg(test)]
mod scaling_tests;
#[cfg(test)]
mod test_support;
bitflags::bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct TextFormatting: u8 {
const BOLD = 1 << 0;
const ITALIC = 1 << 1;
const UNDERLINE = 1 << 2;
const STRIKE_OUT = 1 << 3;
}
}
#[derive(Debug, Clone, PartialEq)]
pub struct ResolvedStyle<'a> {
pub name: &'a str,
font_name: String,
font_size: f32,
primary_color: [u8; 4],
secondary_color: [u8; 4],
outline_color: [u8; 4],
back_color: [u8; 4],
formatting: TextFormatting,
scale_x: f32,
scale_y: f32,
spacing: f32,
angle: f32,
border_style: u8,
outline: f32,
shadow: f32,
alignment: u8,
margin_l: u16,
margin_r: u16,
margin_t: u16,
margin_b: u16,
encoding: u8,
complexity_score: u8,
}