summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2022-06-16 21:44:04 +0930
committerAdrian Johnson <ajohnson@redneon.com>2022-06-17 20:42:43 +0930
commitf0ba2165a6a23bdbc9d6e93da4231c2cac77a2c2 (patch)
treec609b1624b65098467ca6f66e94c947fdc828923 /src/cairo.h
parentb5d2395a5fd9f357839df8c5e6d4dae1ac302e13 (diff)
downloadcairo-f0ba2165a6a23bdbc9d6e93da4231c2cac77a2c2.tar.gz
Add color palette option
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 32ffc6b3d..aec16eaed 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -1446,6 +1446,15 @@ cairo_public void
cairo_font_options_set_variations (cairo_font_options_t *options,
const char *variations);
+#define CAIRO_COLOR_PALETTE_DEFAULT 0
+
+cairo_public unsigned int
+cairo_font_options_get_color_palette (const cairo_font_options_t *options);
+
+cairo_public void
+cairo_font_options_set_color_palette (cairo_font_options_t *options,
+ unsigned int palette_index);
+
/* This interface is for dealing with text as text, not caring about the
font object inside the the cairo_t. */