[ CCode ( cname = "hb_paint_custom_palette_color_func_t" , instance_pos = 4.9 ) ]
[ Version ( since = "7.0.0" ) ]
public delegate Bool PaintCustomPaletteColorFunc (PaintFuncs funcs, void* paint_data, uint color_index, out Color color)
A virtual method for the PaintFuncs to fetch a color from the custom color palette.
Custom palette colors override the colors from the fonts selected color palette. It is not necessary to override all palette entries; for entries that should be taken from the font palette, return `false`.
This function might get called multiple times, but the custom palette is expected to remain unchanged for duration of a paint_glyph call.
| funcs |
paint functions object |
| paint_data |
The data accompanying the paint functions in paint_glyph |
| color_index |
the color index |
| color |
fetched color |
| user_data |
User data pointer passed to set_pop_group_func |
|
`true` if found, `false` otherwise |