OpenType
The package provides a parser for OpenType fonts. It might be helpful to have a
look at a higher-level parser called font
, which internally relies on
this package.
Documentation
Example
extern crate opentype;
extern crate truetype;
use File;
use ;
;
let path = "SourceSerifPro-Regular.otf";
let mut reader = ok!;
let file = ok!;
assert_eq!;
assert_eq!;
let strings = match ok! ;
assert_eq!;
assert_eq!;
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.