harfbuzzjs
    Preparing search index...

    Interface ColorPalette

    A color palette from a font's CPAL table.

    interface ColorPalette {
        colors: PaletteColor[];
        flags: number;
        nameId?: number;
    }
    Index

    Properties

    Properties

    colors: PaletteColor[]

    The colors that make up the palette. The RGBA values are unpremultiplied; see the OpenType spec CPAL section for details.

    flags: number

    The flags defined for the palette, a combination of ColorPaletteFlags values.

    nameId?: number

    The name table Name ID that provides display names for the palette, or undefined if the palette has no name.

    Palette display names can be generic (e.g., "Default") or provide specific, themed names (e.g., "Spring", "Summer", "Fall", and "Winter").