Struct norad::Glyph [−][src]
pub struct Glyph {
pub name: GlyphName,
pub format: GlifVersion,
pub height: f64,
pub width: f64,
pub codepoints: Vec<char>,
pub note: Option<String>,
pub guidelines: Vec<Guideline>,
pub anchors: Vec<Anchor>,
pub components: Vec<Component>,
pub contours: Vec<Contour>,
pub image: Option<Image>,
pub lib: Plist,
}
Expand description
A glyph, loaded from a .glif
file.
Fields
name: GlyphName
format: GlifVersion
height: f64
width: f64
codepoints: Vec<char>
note: Option<String>
guidelines: Vec<Guideline>
anchors: Vec<Anchor>
components: Vec<Component>
contours: Vec<Contour>
image: Option<Image>
lib: Plist
Implementations
Serialize the glyph into an XML byte stream.
The order of elements and attributes follows ufonormalizer where possible.
Load the glyph at this path.
When loading glyphs in bulk, load_with_names
should be preferred,
since it will allow glyph names (in glyphs and components) to be shared
between instances.
Returns a usize that represents the number of Component
defined on the Glyph.
Returns boolean indicating the presence of one or more Component
with base
glyph name basename
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Glyph
impl UnwindSafe for Glyph
Blanket Implementations
Mutably borrows from an owned value. Read more