pub trait Painter {
    // Required methods
    fn outline(&mut self, glyph_id: GlyphId);
    fn paint_foreground(&mut self);
    fn paint_color(&mut self, color: RgbaColor);
}
Expand description

A trait for color glyph painting.

See COLR for details.

Required Methods§

source

fn outline(&mut self, glyph_id: GlyphId)

Outlines a glyph and stores it until the next paint command.

source

fn paint_foreground(&mut self)

Paints the current glyph outline using the application provided text foreground color.

source

fn paint_color(&mut self, color: RgbaColor)

Paints the current glyph outline using the provided color.

Implementors§