makepad_vector/font/
glyph.rs

1use crate::font::HorizontalMetrics;
2use crate::geometry::Rectangle;
3use crate::path::PathCommand;
4use resvg::usvg::Tree;
5use std::rc::Rc;
6
7/// A glyph in a font.
8#[derive(Clone, Debug)]
9pub struct Glyph {
10    pub horizontal_metrics: HorizontalMetrics,
11    pub bounds: Rectangle,
12    pub outline: Vec<PathCommand>,
13    pub svg_image: Option<Rc<Tree>>,
14}