FontOptions.setColorPalette

void setColorPalette(uint paletteIndex)

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.types.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].

Parameters

paletteIndexthe palette index in the CPAL table