makepad_font/font.rs
1use crate::Glyph;
2use makepad_geometry::Rectangle;
3
4/// A font.
5#[derive(Clone, Debug, PartialEq)]
6pub struct Font {
7 pub units_per_em: f32,
8 pub ascender: f32,
9 pub descender: f32,
10 pub line_gap: f32,
11 pub bounds: Rectangle,
12 pub char_code_to_glyph_index_map: Vec<usize>,
13 pub glyphs: Vec<Glyph>,
14}