FontColorPalette Class

A palette of a color font: the colors its color glyphs are painted with.

public sealed class FontColorPalette

Remarks

Every palette of a font has the same number of colors: a glyph names its colors by their position, and another palette gives it other colors (TextStyle.ColorPaletteIndex). The colors are sRGB values with an opacity; like the colors of a brush, they are drawn as they are, without color management.

Properties

NameDescription
ColorsGets the colors of the palette.
IsForDarkBackgroundGets a value indicating whether the font says the palette is made for a dark background.
IsForLightBackgroundGets a value indicating whether the font says the palette is made for a light background.

Gets the colors of the palette.

public IReadOnlyList<Rgba32> Colors { get; }

Property value

IReadOnlyList<Rgba32>

IsForDarkBackground

FontColorPalette.cs

Gets a value indicating whether the font says the palette is made for a dark background.

public bool IsForDarkBackground { get; }

Property value

bool

IsForLightBackground

FontColorPalette.cs

Gets a value indicating whether the font says the palette is made for a light background.

public bool IsForLightBackground { get; }

Property value

bool