module font::readersource
Big-endian numbers read out of font data, 0 past its end, so a truncated or malformed font reads as zeros rather than faulting.
fn u8_atsource
exp fn u8_at(d: &[u8], at: u64) -> u32
fn u16_atsource
exp fn u16_at(d: &[u8], at: u64) -> u32
fn i16_atsource
exp fn i16_at(d: &[u8], at: u64) -> i32
fn u32_atsource
exp fn u32_at(d: &[u8], at: u64) -> u32
fn f2dot14_atsource
exp fn f2dot14_at(d: &[u8], at: u64) -> f32
A 2.14 fixed-point number, as composite glyphs' scales are.
fn tag_atsource
exp fn tag_at(d: &[u8], at: u64) -> &[u8]
The four bytes of a tag at at, to match against names: none past the
data's end.
fn tagsource
exp fn tag(text: &[u8]) -> u32
The four bytes as a tag, as 0x6B65726E for "kern".