use std::ops::Range;
use crate::types::FontFaceId;
#[derive(Clone)]
pub struct ShapedGlyph {
pub glyph_id: u16,
pub cluster: u32,
pub x_advance: f32,
pub y_advance: f32,
pub x_offset: f32,
pub y_offset: f32,
pub font_face_id: FontFaceId,
}
#[derive(Clone)]
pub struct ShapedRun {
pub font_face_id: FontFaceId,
pub size_px: f32,
pub glyphs: Vec<ShapedGlyph>,
pub advance_width: f32,
pub text_range: Range<usize>,
pub underline_style: crate::types::UnderlineStyle,
pub overline: bool,
pub strikeout: bool,
pub is_link: bool,
pub foreground_color: Option<[f32; 4]>,
pub underline_color: Option<[f32; 4]>,
pub background_color: Option<[f32; 4]>,
pub anchor_href: Option<String>,
pub tooltip: Option<String>,
pub vertical_alignment: crate::types::VerticalAlignment,
pub image_name: Option<String>,
pub image_height: f32,
}