Trait owned_ttf_parser::colr::Painter
source · 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§
sourcefn outline(&mut self, glyph_id: GlyphId)
fn outline(&mut self, glyph_id: GlyphId)
Outlines a glyph and stores it until the next paint command.
sourcefn paint_foreground(&mut self)
fn paint_foreground(&mut self)
Paints the current glyph outline using the application provided text foreground color.
sourcefn paint_color(&mut self, color: RgbaColor)
fn paint_color(&mut self, color: RgbaColor)
Paints the current glyph outline using the provided color.