pub enum HeaderVariant {
Microsoft,
Apple,
}Expand description
Which kern header layout the input table uses. Exposed so callers
can tell apart Microsoft-format fonts (whose Format-0 subtables this
crate decodes) from Apple-format fonts (whose subtable bodies are
currently surfaced as “no kerning pairs available” rather than
rejected at parse time).
Variants§
Microsoft
Microsoft / OpenType layout: u16 version (= 0), u16 nTables,
then nTables subtables. Per-subtable header is u16 version, u16 length, u16 coverage. This crate decodes Format-0
horizontal kerning subtables.
Apple
Apple layout: u32 version (= 0x00010000), u32 nTables, then
nTables subtables with a different per-subtable header
layout. The subtable bodies are not decoded by this crate;
callers that need Apple-kern data should hold the fixed Apple
kerx clean-room reference and submit a follow-up.
Trait Implementations§
Source§impl Clone for HeaderVariant
impl Clone for HeaderVariant
Source§fn clone(&self) -> HeaderVariant
fn clone(&self) -> HeaderVariant
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more