font 0.0.9

The package provides a font toolbox.
Documentation

Font Version Status

The package provides a font toolbox.

Documentation

Example

use font::File;
use font::Operation::*;

let path = "SourceSerifPro-Regular.otf";
let file = File::open(path).unwrap();
let glyph = file[0].draw('&').unwrap().unwrap();

for operation in glyph.iter() {
    match operation {
        &Curve(..) => println!("Curve!"),
        &Line(..) => println!("Line!"),
        &Move(..) => println!("Move!"),
    }
}

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.