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