OtColorPalette
Description:
[ CCode ( cname = "hb_ot_color_palette_flags_t" , cprefix = "HB_OT_COLOR_PALETTE_FLAG_" , type_id = "hb_gobject_ot_color_palette_flags_get_type ()" ) ]
[ Flags ]
[ GIR ( name = "ot_color_palette_flags_t" ) ]
[ Version ( since = "2.1.0" ) ]
public enum OtColorPalette
Flags that describe the properties of color palette.
Content:
Enum values:
- DEFAULT - Default indicating that
there is nothing special to note about a color palette.
- USABLE_WITH_DARK_BACKGROUND -
Flag indicating that the color palette is appropriate to use when displaying the font on a dark
background such as black.
- USABLE_WITH_LIGHT_BACKGROUND -
Flag indicating that the color palette is appropriate to use when displaying the font on a light
background such as white.
Static methods:
- public static OtNameId color_get_name_id (Face face, uint color_index)
Fetches the `name` table Name ID that provides display names for the
specified color in a face's `CPAL` color palette.
- public static uint get_colors (Face face, uint palette_index, uint start_offset, out Color[]? colors)
Fetches a list of the colors in a color palette.
- public static uint get_count (Face face)
Fetches the number of color palettes in a face.
- public static OtColorPalette get_flags (Face face, uint palette_index)
Fetches the flags defined for a color palette.
- public static OtNameId get_name_id (Face face, uint palette_index)
Fetches the `name` table Name ID that provides display names for a
`CPAL` color palette.