Trait Scaler

Source
trait Scaler {
    // Required methods
    fn outlines(&self) -> &Outlines<'_>;
    fn setup_phantom_points(
        &mut self,
        bounds: [i16; 4],
        lsb: i32,
        advance: i32,
        tsb: i32,
        vadvance: i32,
    );
    fn load_empty(&mut self, glyph_id: GlyphId) -> Result<(), DrawError>;
    fn load_simple(
        &mut self,
        glyph: &SimpleGlyph<'_>,
        glyph_id: GlyphId,
    ) -> Result<(), DrawError>;
    fn load_composite(
        &mut self,
        glyph: &CompositeGlyph<'_>,
        glyph_id: GlyphId,
        recurse_depth: usize,
    ) -> Result<(), DrawError>;

    // Provided method
    fn load(
        &mut self,
        glyph: &Option<Glyph<'_>>,
        glyph_id: GlyphId,
        recurse_depth: usize,
    ) -> Result<(), DrawError> { ... }
}

Required Methods§

Source

fn outlines(&self) -> &Outlines<'_>

Source

fn setup_phantom_points( &mut self, bounds: [i16; 4], lsb: i32, advance: i32, tsb: i32, vadvance: i32, )

Source

fn load_empty(&mut self, glyph_id: GlyphId) -> Result<(), DrawError>

Source

fn load_simple( &mut self, glyph: &SimpleGlyph<'_>, glyph_id: GlyphId, ) -> Result<(), DrawError>

Source

fn load_composite( &mut self, glyph: &CompositeGlyph<'_>, glyph_id: GlyphId, recurse_depth: usize, ) -> Result<(), DrawError>

Provided Methods§

Source

fn load( &mut self, glyph: &Option<Glyph<'_>>, glyph_id: GlyphId, recurse_depth: usize, ) -> Result<(), DrawError>

Implementors§