pub type Lookup4<'a> = TableRef<'a, Lookup4Marker>;
Expand description
Segment array format. A segment mapping is performed (as with Format 2), but instead of a single lookup value for all the glyphs in the segment, each glyph in the segment gets its own separate lookup value.
Aliased Type§
struct Lookup4<'a> { /* private fields */ }
Implementations§
source§impl<'a> Lookup4<'a>
impl<'a> Lookup4<'a>
sourcepub fn search_range(&self) -> u16
pub fn search_range(&self) -> u16
The value of unitSize times the largest power of 2 that is less than or equal to the value of nUnits.
sourcepub fn entry_selector(&self) -> u16
pub fn entry_selector(&self) -> u16
The log base 2 of the largest power of 2 less than or equal to the value of nUnits.
sourcepub fn range_shift(&self) -> u16
pub fn range_shift(&self) -> u16
The value of unitSize times the difference of the value of nUnits minus the largest power of 2 less than or equal to the value of nUnits.
sourcepub fn segments(&self) -> &'a [LookupSegment4]
pub fn segments(&self) -> &'a [LookupSegment4]
Segments.