truetype 0.38.0

The package provides a parser for TrueType fonts.
Documentation
extern crate truetype;

#[macro_use]
mod support;

use truetype::{FontHeader, Value};

use support::setup;

#[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.mac_style), 0);
    assert_eq!(table.glyph_mapping_format, 0);
}