FontOptions.setColorPalette

Sets the OpenType font color palette for the font options object. OpenType color fonts with a CPAL table may contain multiple palettes. The default color palette index is CAIRO_COLOR_PALETTE_DEFAULT.

If palette_index is invalid, the default palette is used.

Individual colors within the palette may be overriden with cairo.font_options.FontOptions.setCustomPaletteColor.

class FontOptions
void
setColorPalette

Parameters

paletteIndex uint

the palette index in the CPAL table