use super::Rect;
#[derive(Clone, Copy)]
#[non_exhaustive]
pub struct DecodedGlyph {
pub font_size_px: f32,
pub text_id: u64,
pub metadata: usize,
pub glyph_index_in_text: usize,
pub total_glyphs_in_text: usize,
pub glyph_rect: Rect,
pub text_rect: Rect,
pub text_rect_tight: Rect,
pub metadata_block_size: glam::Vec2,
pub offset_in_metadata_block: glam::Vec2,
pub uvw: (Rect, u32),
}
#[derive(Clone, Copy)]
pub struct Text<'a> {
pub id: u64,
pub text_buffer: &'a cosmic_text::Buffer,
pub region: Rect,
pub scale: f32,
pub custom_padding: Option<(usize, usize)>,
}