Type Alias read_fonts::tables::aat::Lookup2
source · pub type Lookup2<'a> = TableRef<'a, Lookup2Marker>;
Expand description
Segment single format. Each non-overlapping segment has a single lookup value that applies to all glyphs in the segment. A segment is defined as a contiguous range of glyph indexes.
Aliased Type§
struct Lookup2<'a> { /* private fields */ }
Implementations§
source§impl<'a> Lookup2<'a>
impl<'a> Lookup2<'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_data(&self) -> &'a [u8] ⓘ
pub fn segments_data(&self) -> &'a [u8] ⓘ
Segments.