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> { ... }
}