makepad-vector 1.0.0

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

/// A glyph in a font.
#[derive(Clone, Debug)]
pub struct Glyph {
    pub horizontal_metrics: HorizontalMetrics,
    pub bounds: Rectangle,
    pub outline: Vec<PathCommand>,
    pub svg_image: Option<Rc<Tree>>,
}