[paint] Add HB_PAINT_PALETTE_INDEX_CUSTOM
This commit is contained in:
parent
9a2f2b593e
commit
8afd3ccb10
|
@ -1440,7 +1440,8 @@ hb_font_draw_glyph (hb_font_t *font,
|
|||
*
|
||||
* If the font has color palettes (see hb_ot_color_has_palettes()),
|
||||
* then @palette_index selects the palette to use. If the font doesn't
|
||||
* have palettes, passing 0 is fine.
|
||||
* have palettes, passing 0 is fine. Use %HB_PAINT_PALETTE_INDEX_CUSTOM
|
||||
* for custom palette.
|
||||
*
|
||||
* Since: REPLACEME
|
||||
*/
|
||||
|
|
|
@ -33,6 +33,18 @@
|
|||
|
||||
HB_BEGIN_DECLS
|
||||
|
||||
|
||||
/**
|
||||
* HB_PAINT_PALETTE_INDEX_CUSTOM
|
||||
*
|
||||
* A palette index signifying that custom colors are in use.
|
||||
* Such colors are fetched from the client using the
|
||||
* custom-palette-color callback of the paint functions.
|
||||
*
|
||||
* Since: REPLACEME
|
||||
**/
|
||||
#define HB_PAINT_PALETTE_INDEX_CUSTOM 0xFFFFFFFF
|
||||
|
||||
/**
|
||||
* hb_paint_funcs_t:
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue