use crate::common::geom::Rect;
pub const FRACTION_TERM: i8 = 2;
#[derive(Debug, Clone)]
pub struct LineGlyph {
pub text: String,
pub x0: f32,
pub x1: f32,
pub y: f32,
pub size: f32,
pub font: u16,
pub script: i8,
pub space_before: bool,
pub drawn_space: bool,
pub link: Option<std::sync::Arc<str>>,
pub ink: Rect,
pub ox: f32,
pub oy: f32,
pub extra: Vec<(f32, f32)>,
pub color: [u8; 3],
}
#[derive(Debug, Clone)]
pub struct Line {
pub page: usize,
pub bbox: Rect,
pub ink: Rect,
pub baseline: f32,
pub size: f32,
pub font: u16,
pub glyphs: Vec<LineGlyph>,
pub fixed_pitch: bool,
}
#[derive(Debug, Clone)]
pub struct RotatedText {
pub text: String,
pub bbox: Rect,
pub x: f32,
pub y: f32,
pub angle: f32,
pub size: f32,
pub length: f32,
pub font: u16,
pub color: [u8; 3],
pub origins: Vec<(f32, f32)>,
}