pub type Subtable0<'a> = TableRef<'a, Subtable0Marker>;
Expand description
The type 0 kerx
subtable.
Aliased Type§
pub struct Subtable0<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Subtable0<'a>
impl<'a> Subtable0<'a>
Sourcepub fn search_range(&self) -> u32
pub fn search_range(&self) -> u32
The largest power of two less than or equal to the value of nPairs, multiplied by the size in bytes of an entry in the subtable.
Sourcepub fn entry_selector(&self) -> u32
pub fn entry_selector(&self) -> u32
This is calculated as log2 of the largest power of two less than or equal to the value of nPairs. This value indicates how many iterations of the search loop have to be made. For example, in a list of eight items, there would be three iterations of the loop.
Sourcepub fn range_shift(&self) -> u32
pub fn range_shift(&self) -> u32
The value of nPairs minus the largest power of two less than or equal to nPairs. This is multiplied by the size in bytes of an entry in the table.
Sourcepub fn pairs(&self) -> &'a [Subtable0Pair]
pub fn pairs(&self) -> &'a [Subtable0Pair]
Kerning records.