Skip to main content

Module ttf_parser

Module ttf_parser 

Source
Expand description

A minimal subset of ttf-parser, inlined from ttf-parser 0.25.1 (MIT / Apache-2.0).

Contains just enough of the original crate to parse font table records, the name table and parts of the OS/2 table.

Re-exportsยง

pub use language::Language;
pub use name::name_id;
pub use name::PlatformId;
pub use os2::Style;
pub use os2::Width;
pub use parser::LazyArray16;

Modulesยง

language ๐Ÿ”’
name
A Naming Table implementation.
os2
A OS/2 and Windows Metrics Table implementation.
parser ๐Ÿ”’
Binary parsing utils.

Structsยง

RawFace
A raw font face.
TableRecord ๐Ÿ”’
A raw table record.
Tag
A 4-byte tag.

Enumsยง

FaceParsingError
A list of font face parsing errors.
Magic ๐Ÿ”’
A TrueType font magic.

Functionsยง

fonts_in_collection
Returns the number of fonts stored in a TrueType font collection.