pub type CoverageFormat1<'a> = TableRef<'a, CoverageFormat1Marker>;Expand description
Aliased Type§
struct CoverageFormat1<'a> { /* private fields */ }Implementations§
Source§impl<'a> CoverageFormat1<'a>
impl<'a> CoverageFormat1<'a>
Sourcepub fn coverage_format(&self) -> u16
pub fn coverage_format(&self) -> u16
Format identifier — format = 1
Sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyphs in the glyph array
Sourcepub fn glyph_array(&self) -> &'a [BigEndian<GlyphId16>]
pub fn glyph_array(&self) -> &'a [BigEndian<GlyphId16>]
Array of glyph IDs — in numerical order
Source§impl CoverageFormat1<'_>
impl CoverageFormat1<'_>
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
Sourcepub fn intersects(&self, glyphs: &IntSet<GlyphId>) -> bool
Available on crate feature std only.
pub fn intersects(&self, glyphs: &IntSet<GlyphId>) -> bool
std only.Returns if this table contains at least one glyph in the ‘glyphs’ set.
Sourcepub fn population(&self) -> usize
pub fn population(&self) -> usize
Return the number of glyphs in this table