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
use File;
use ;
use ;
;
let path = "SourceSerifPro-Regular.otf";
let mut tape = ok!;
let File = ok!;
let font_header: FontHeader = ok!;
assert_eq!;
let horizontal_header: HorizontalHeader = ok!;
assert_eq!;
let naming_table: NamingTable = ok!;
let names = naming_table
.iter
.map| )
.;
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.