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
index | the index of the color to set |
red | red component of color |
green | green component of color |
blue | blue component of color |
alpha | alpha component of color |