#font #fonts #ufo

norad

Read and write Unified Font Object files

11 unstable releases (5 breaking)

new 0.5.1 Sep 14, 2021
0.4.0 May 14, 2021
0.3.1 Jan 5, 2021
0.2.0 Jun 10, 2020
0.0.1 May 22, 2019

#128 in Text processing

Download history 18/week @ 2021-05-29 27/week @ 2021-06-05 28/week @ 2021-06-12 12/week @ 2021-06-19 24/week @ 2021-06-26 71/week @ 2021-07-03 48/week @ 2021-07-10 68/week @ 2021-07-17 238/week @ 2021-07-24 52/week @ 2021-07-31 62/week @ 2021-08-07 76/week @ 2021-08-14 279/week @ 2021-08-21 14/week @ 2021-08-28 173/week @ 2021-09-04 193/week @ 2021-09-11

406 downloads per month
Used in 3 crates

MIT/Apache

290KB
6.5K SLoC

Norad

a Rust crate for working with Unified Font Object files.

A crate for reading, writing, and manipulating Unified Font Object files, a common font-design format.


lib.rs:

Utilties for working with Unified Font Object files.

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

Basic usage:

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");

Dependencies

~2.8–7.5MB
~145K SLoC