Crate norad

source ·
Expand description

Utilties for working with Unified Font Object files.

The types in this crate correspond to types described in the spec.

Basic Usage

Instantiate a UFO font object with a Font struct like this:

use norad::Font;

let inpath = "RoflsExtraDim.ufo";
let mut font_obj = Font::load(inpath).expect("failed to load font");

The API may be used to access and modify data in the Font:

 let layer = font_obj.default_layer();
 let glyph_a = layer.get_glyph("A").expect("missing glyph");
 assert_eq!(, "A");

Serialize the Font to UFO files on disk with the Font::save method:

 let outpath = "RoflsSemiDim.ufo";;

Refer to the examples directory of the source repository for additional source code examples.

API Documentation

Details on the full API for working with UFO fonts are available in these docs.


norad is licensed under the MIT and Apache v2.0 licenses.


Source files are available at






Type Aliases

  • A map of group name to a list of glyph names.
  • A map of kerning pairs.
  • A Plist dictionary.