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.
Example
extern crate opentype;
use Font;
use ;
;
let path = "SourceSerifPro-Regular.otf";
let mut reader = ok!;
let font = ok!;
let font_header: FontHeader = ok!;
assert!;
let horizontal_header: HorizontalHeader = ok!;
assert!;
let naming_table: NamingTable = ok!;
match naming_table
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.