FontOptions.setCustomPaletteColor

void setCustomPaletteColor(uint index, double red, double green, double blue, double alpha)

Sets a custom palette color for the font options object. This overrides the palette color at the specified color index. This override is independent of the selected palette index and will remain in place even if [cairo.font_options.FontOptions.setColorPalette] is called to change the palette index.

It is only possible to override color indexes already in the font palette.

Parameters

indexthe index of the color to set
redred component of color
greengreen component of color
blueblue component of color
alphaalpha component of color