pub type SingleSubstFormat2<'a> = TableRef<'a, SingleSubstFormat2Marker>;
Expand description
Aliased Type§
pub struct SingleSubstFormat2<'a> {
pub(crate) shape: SingleSubstFormat2Marker,
pub(crate) data: FontData<'a>,
}
Fields§
§shape: SingleSubstFormat2Marker
§data: FontData<'a>
Implementations§
Source§impl<'a> SingleSubstFormat2<'a>
impl<'a> SingleSubstFormat2<'a>
Sourcepub fn subst_format(&self) -> u16
pub fn subst_format(&self) -> u16
Format identifier: format = 2
Sourcepub fn coverage_offset(&self) -> Offset16
pub fn coverage_offset(&self) -> Offset16
Offset to Coverage table, from beginning of substitution subtable
Sourcepub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
pub fn coverage(&self) -> Result<CoverageTable<'a>, ReadError>
Attempt to resolve coverage_offset
.
Sourcepub fn glyph_count(&self) -> u16
pub fn glyph_count(&self) -> u16
Number of glyph IDs in the substituteGlyphIDs array
Sourcepub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId16>]
pub fn substitute_glyph_ids(&self) -> &'a [BigEndian<GlyphId16>]
Array of substitute glyph IDs — ordered by Coverage index
Trait Implementations§
Source§impl<'a> Debug for SingleSubstFormat2<'a>
impl<'a> Debug for SingleSubstFormat2<'a>
Source§impl<'a> FontRead<'a> for SingleSubstFormat2<'a>
impl<'a> FontRead<'a> for SingleSubstFormat2<'a>
Source§impl GlyphClosure for SingleSubstFormat2<'_>
impl GlyphClosure for SingleSubstFormat2<'_>
Source§fn closure_glyphs(
&self,
ctx: &mut ClosureCtx<'_>,
_lookup_list: &SubstitutionLookupList<'_>,
_lookup_index: u16,
) -> Result<(), ReadError>
fn closure_glyphs( &self, ctx: &mut ClosureCtx<'_>, _lookup_list: &SubstitutionLookupList<'_>, _lookup_index: u16, ) -> Result<(), ReadError>
Update the set of glyphs with any glyphs reachable via substitution.