PeachDrawing.Core

PeachDrawing.Core

FontPalette Class

A fully-resolved CSS font-palette selection carried alongside the text color into the graphics adapter. The light/dark keywords, @font-palette-values base-palette, and palette-mix() are all resolved to a concrete BasePaletteIndex (+ per-entry Overrides) on the CSS side, so the PDF backend only looks up an index and applies overrides. A nullFontPalette means the default (palette 0, no overrides) — the unchanged path.

public sealed record FontPalette : System.IEquatable<PeachDrawing.Core.FontPalette>

Inheritance System.Object → FontPalette

Implements System.IEquatable<FontPalette>

Constructors  
FontPalette(int, IReadOnlyList<KeyValuePair<int,PaintColor>>) A fully-resolved CSS font-palette selection carried alongside the text color into the graphics adapter. The light/dark keywords, @font-palette-values base-palette, and palette-mix() are all resolved to a concrete BasePaletteIndex (+ per-entry Overrides) on the CSS side, so the PDF backend only looks up an index and applies overrides. A nullFontPalette means the default (palette 0, no overrides) — the unchanged path.