zaplib_vector 0.0.3

The vector library for Zaplib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::font::Glyph;
use crate::geometry::Rectangle;

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