Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Glyph;
use makepad_geometry::Rectangle;

/// A font.
#[derive(Clone, Debug, PartialEq)]
pub struct Font {
    pub units_per_em: f32,
    pub ascender: f32,
    pub descender: f32,
    pub line_gap: f32,
    pub bounds: Rectangle,
    pub char_code_to_glyph_index_map: Vec<usize>,
    pub glyphs: Vec<Glyph>,
}