Utilties for working with Unified Font Object files.
The types in this crate correspond to types described in the spec.
use norad::Font; let path = "RoflsExtraDim.ufo"; let mut font_obj = Font::load(path).expect("failed to load font"); let layer = font_obj.default_layer(); let glyph_a = layer.get_glyph("A").expect("missing glyph"); assert_eq!(glyph_a.name.as_ref(), "A");
Storage structures for UFO data and images.
A 2D affine transformation.
An reference position in a glyph, such as for attaching accents.
A reference to another glyph, to be included in this glyph’s outline.
A single open or closed bezier path segment.
A type that describes which components of a UFO should be loaded.
A Unified Font Object.
A guideline associated with a glyph.
An image included in a glyph.
A number that may be either an integer or float.
A number that can be a non-negative integer or float.
Options that can be set when writing the UFO to disk.
An infinite line.
The quote character used to write the XML declaration.