1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! Builder and parser of TrueType fonts.

#[macro_use(choices, dereference, flags, jump_take, raise, table)]
extern crate typeface;

pub mod tables;

mod number;
mod tag;

pub use typeface::{tape, value, walue, Error, Result};

pub use number::{q16, q32};
pub use tag::Tag;

/// A glyph identifier.
pub type GlyphID = u16;

/// Check if a tag is recognized.
#[inline]
pub fn accept(tag: &Tag) -> bool {
    tables::offsets::Header::accept(tag)
}