Type Alias read_fonts::tables::glyf::CompositeGlyph
source · pub type CompositeGlyph<'a> = TableRef<'a, CompositeGlyphMarker>;
Expand description
Aliased Type§
struct CompositeGlyph<'a> { /* private fields */ }
Implementations§
source§impl<'a> CompositeGlyph<'a>
impl<'a> CompositeGlyph<'a>
sourcepub fn number_of_contours(&self) -> i16
pub fn number_of_contours(&self) -> i16
If the number of contours is greater than or equal to zero, this is a simple glyph. If negative, this is a composite glyph — the value -1 should be used for composite glyphs.
sourcepub fn component_data(&self) -> &'a [u8] ⓘ
pub fn component_data(&self) -> &'a [u8] ⓘ
component flag glyph index of component
source§impl<'a> CompositeGlyph<'a>
impl<'a> CompositeGlyph<'a>
sourcepub fn components(&self) -> impl Iterator<Item = Component> + 'a + Clone
pub fn components(&self) -> impl Iterator<Item = Component> + 'a + Clone
Returns an iterator over the components of the composite glyph.
sourcepub fn component_glyphs_and_flags(
&self,
) -> impl Iterator<Item = (GlyphId16, CompositeGlyphFlags)> + 'a + Clone
pub fn component_glyphs_and_flags( &self, ) -> impl Iterator<Item = (GlyphId16, CompositeGlyphFlags)> + 'a + Clone
Returns an iterator that yields the glyph identifier and flags of each component in the composite glyph.
sourcepub fn count_and_instructions(&self) -> (usize, Option<&'a [u8]>)
pub fn count_and_instructions(&self) -> (usize, Option<&'a [u8]>)
Returns the component count and TrueType interpreter instructions in a single pass.
sourcepub fn instructions(&self) -> Option<&'a [u8]>
pub fn instructions(&self) -> Option<&'a [u8]>
Returns the TrueType interpreter instructions.