paint_glyph


Description:

[ Version ( since = "7.0.0" ) ]
public void paint_glyph (Codepoint glyph, PaintFuncs pfuncs, void* paint_data, uint palette_index, 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 ot_color_has_palettes), then palette_index selects the palette to use. If the font only has one palette, this will be 0.

Parameters:

glyph

The glyph ID

pfuncs

PaintFuncs to paint with

paint_data

User data to pass to paint callbacks

palette_index

The index of the font's color palette to use

foreground

The foreground color, unpremultipled

font

Font to work upon