fontPaintGlyph
fn
void fontPaintGlyph(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.paint_funcs.PaintFuncs pfuncs, void * paintData, uint paletteIndex, harfbuzz.types.Color foreground)Paints the glyph.
The painting instructions are returned by way of calls to the callbacks of the funcs object, with paint_data passed to them.
If the font has color palettes (see [harfbuzz.global.otColorHasPalettes]), then palette_index selects the palette to use. If the font only has one palette, this will be 0.
Parameters
font | #hb_font_t to work upon |
glyph | The glyph ID |
pfuncs | #hb_paint_funcs_t to paint with |
paintData | User data to pass to paint callbacks |
paletteIndex | The index of the font's color palette to use |
foreground | The foreground color, unpremultipled |