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.
Source§impl<'a, T> TableRef<'a, T>
impl<'a, T> TableRef<'a, T>
Sourcepub fn resolve_offset<O: Offset, R: FontRead<'a>>(
&self,
offset: O,
) -> Result<R, ReadError>
pub fn resolve_offset<O: Offset, R: FontRead<'a>>( &self, offset: O, ) -> Result<R, ReadError>
Resolve the provided offset from the start of this table.
Sourcepub fn offset_data(&self) -> FontData<'a>
pub fn offset_data(&self) -> FontData<'a>
Return a reference to this table’s raw data.
We use this in the compile crate to resolve offsets.