type1-encoding-parser 0.1.0

A library to parse encodings from Type1 font files
Documentation
extern crate type1_encoding_parser;
use type1_encoding_parser::*;
use std::fs::File;
use std::io::{Read, BufReader};
use std::path::Path;


fn main() {

    let f = File::open("example.pfa").unwrap();
    let mut f = BufReader::new(f);
    let mut contents = Vec::new();
    f.read_to_end(&mut contents);

    let lexed = parse(&contents).expect("failed to parse");
    println!("{:?}", lexed);

    println!("map {:?}", get_encoding_map(&contents));

}