fontPaintGlyph

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 harfbuzz.font.Font

#hb_font_t to work upon

glyph harfbuzz.types.Codepoint

The glyph ID

pfuncs harfbuzz.paint_funcs.PaintFuncs

#hb_paint_funcs_t to paint with

paintData void*

User data to pass to paint callbacks

paletteIndex uint

The index of the font's color palette to use

foreground harfbuzz.types.Color

The foreground color, unpremultipled