6 releases

0.2.0 Jun 10, 2020
0.1.0 Apr 1, 2020
0.0.4 Nov 2, 2019
0.0.2 Sep 26, 2019
0.0.1 May 22, 2019

#223 in Text processing

Download history 16/week @ 2020-07-05 18/week @ 2020-07-12 19/week @ 2020-07-19 9/week @ 2020-07-26 9/week @ 2020-08-02 28/week @ 2020-08-09 35/week @ 2020-08-16 16/week @ 2020-08-23 21/week @ 2020-08-30 33/week @ 2020-09-06 11/week @ 2020-09-13 7/week @ 2020-09-20 33/week @ 2020-09-27 86/week @ 2020-10-04 105/week @ 2020-10-11 151/week @ 2020-10-18

86 downloads per month

MIT/Apache

140KB
3.5K SLoC

Norad

a Rust crate for working with Unified Font Object files.

This crate currently provides very minimal functionality for loading glyphs from .ufo directories. It is expected to expand as needs require.


lib.rs:

Utilties for working with Universal Font Object files.

Basic usage:

use norad::Ufo;

let path = "RoflsSansLight.ufo";
let mut font_obj = Ufo::load(path).expect("failed to load font");
let layer = font_obj.find_layer(|layer| layer.name == "glyphs").unwrap();
let glyph_a = layer.get_glyph("A").expect("missing glyph");
assert_eq!(glyph_a.name.as_ref(), "A");

Dependencies

~2.5–7.5MB
~158K SLoC