pub type ClassDefFormat1<'a> = TableRef<'a, ClassDefFormat1Marker>;
Expand description
Aliased Type§
struct ClassDefFormat1<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ClassDefFormat1<'a>
impl<'a> ClassDefFormat1<'a>
Sourcepub fn class_format(&self) -> u16
pub fn class_format(&self) -> u16
Format identifier — format = 1
Sourcepub fn start_glyph_id(&self) -> GlyphId16
pub fn start_glyph_id(&self) -> GlyphId16
First glyph ID of the classValueArray
Sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Size of the classValueArray
Sourcepub fn class_value_array(&self) -> &'a [BigEndian<u16>]
pub fn class_value_array(&self) -> &'a [BigEndian<u16>]
Array of Class Values — one per glyph ID
Source§impl<'a> ClassDefFormat1<'a>
impl<'a> ClassDefFormat1<'a>
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.