font 0.0.4

The package provides a font toolbox.
Documentation

Font Version Status

The package provides a font toolbox.

Documentation

Example

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

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

Contribution

  1. Fork the project.
  2. Implement your idea.
  3. Open a pull request.