fontPaintGlyph

fnvoid 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
glyphThe glyph ID
pfuncs#hb_paint_funcs_t to paint with
paintDataUser data to pass to paint callbacks
paletteIndexThe index of the font's color palette to use
foregroundThe foreground color, unpremultipled