FontOptions.setCustomPaletteColor

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.

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

Parameters

index uint

the index of the color to set

red double

red component of color

green double

green component of color

blue double

blue component of color

alpha double

alpha component of color