pub type CoverageFormat2<'a> = TableRef<'a, CoverageFormat2Marker>;
Expand description
Aliased Type§
pub struct CoverageFormat2<'a> {
pub(crate) shape: CoverageFormat2Marker,
pub(crate) data: FontData<'a>,
}
Fields§
§shape: CoverageFormat2Marker
§data: FontData<'a>
Implementations§
Source§impl<'a> CoverageFormat2<'a>
impl<'a> CoverageFormat2<'a>
Sourcepub fn coverage_format(&self) -> u16
pub fn coverage_format(&self) -> u16
Format identifier — format = 2
Sourcepub fn range_count(&self) -> u16
pub fn range_count(&self) -> u16
Number of RangeRecords
Sourcepub fn range_records(&self) -> &'a [RangeRecord]
pub fn range_records(&self) -> &'a [RangeRecord]
Array of glyph ranges — ordered by startGlyphID.
Source§impl CoverageFormat2<'_>
impl CoverageFormat2<'_>
Sourcepub fn get(&self, gid: impl Into<GlyphId>) -> Option<u16>
pub fn get(&self, gid: impl Into<GlyphId>) -> Option<u16>
If this glyph is in the coverage table, returns its index
Sourcefn intersects(&self, glyphs: &IntSet<GlyphId>) -> bool
fn intersects(&self, glyphs: &IntSet<GlyphId>) -> bool
Returns if this table contains at least one glyph in the ‘glyphs’ set.
Sourcefn intersect_set(&self, glyphs: &IntSet<GlyphId>) -> IntSet<GlyphId>
fn intersect_set(&self, glyphs: &IntSet<GlyphId>) -> IntSet<GlyphId>
Returns the intersection of this table and input ‘glyphs’ set.
Sourcepub fn population(&self) -> usize
pub fn population(&self) -> usize
Return the number of glyphs in this table