makepad-vector 1.0.0

Makepad vector api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::font::Glyph;
use crate::geometry::Rectangle;
use resvg::usvg::Tree;
use std::rc::Rc;

/// A font.
#[derive(Clone, Debug)]
pub struct TTFFont {
    pub units_per_em: f64,
    pub ascender: f64,
    pub descender: f64,
    pub line_gap: f64,
    pub bounds: Rectangle,
    pub cached_decoded_glyphs: Vec<Option<Box<Glyph>>>,
    pub cached_svg_images: Vec<Option<Option<Rc<Tree>>>>,
}