pub type ClassDefFormat1<'a> = TableRef<'a, ClassDefFormat1Marker>;
Expand description
Aliased Type§
pub struct ClassDefFormat1<'a> {
pub(crate) shape: ClassDefFormat1Marker,
pub(crate) data: FontData<'a>,
}
Fields§
§shape: ClassDefFormat1Marker
§data: FontData<'a>
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>
Sourcepub fn iter(&self) -> impl Iterator<Item = (GlyphId16, u16)> + 'a
pub fn iter(&self) -> impl Iterator<Item = (GlyphId16, u16)> + 'a
Iterate over each glyph and its class.
Sourcepub fn population(&self) -> usize
pub fn population(&self) -> usize
Return the number of glyphs explicitly assigned to a class in this table