truetype 0.45.1

The package provides a builder and parser of TrueType fonts.
Documentation
#[macro_use]
mod support;

use truetype::tables::FontHeader;
use truetype::value::Read;

#[test]
fn read() {
    let table = ok!(FontHeader::read(&mut setup!(SourceSerif, "head")));
    assert_eq!(format!("{:.3}", f32::from(table.revision)), "1.017");
    assert_eq!(table.units_per_em, 1000);
    assert_eq!(u16::from(table.macintosh_flags), 0);
    assert_eq!(table.glyph_mapping_format, 0);
}