pub type ClassDefFormat2<'a> = TableRef<'a, ClassDefFormat2Marker>;
Expand description
Aliased Type§
pub struct ClassDefFormat2<'a> {
pub(crate) shape: ClassDefFormat2Marker,
pub(crate) data: FontData<'a>,
}
Fields§
§shape: ClassDefFormat2Marker
§data: FontData<'a>
Implementations§
Source§impl<'a> ClassDefFormat2<'a>
impl<'a> ClassDefFormat2<'a>
Sourcepub fn class_format(&self) -> u16
pub fn class_format(&self) -> u16
Format identifier — format = 2
Sourcepub fn class_range_count(&self) -> u16
pub fn class_range_count(&self) -> u16
Number of ClassRangeRecords
Sourcepub fn class_range_records(&self) -> &'a [ClassRangeRecord]
pub fn class_range_records(&self) -> &'a [ClassRangeRecord]
Array of ClassRangeRecords — ordered by startGlyphID
Source§impl<'a> ClassDefFormat2<'a>
impl<'a> ClassDefFormat2<'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