diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 10:40:13 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-12-19 15:16:19 -0500 |
commit | edf9497c3a28bc4e110ecf08069c8d48b995a0ea (patch) | |
tree | 6e6344247f4a833d9471f823b7da9cd90a0ee32e /src/cairo.h | |
parent | 4ece386149ccd8fbad5f8dff5d792ad2b49d5915 (diff) | |
download | cairo-edf9497c3a28bc4e110ecf08069c8d48b995a0ea.tar.gz |
Add font variations to font options
Add a font option for OpenType font variations, specified
as a string in a format similar to the proposed css
font-variation-settings property.
Diffstat (limited to 'src/cairo.h')
-rw-r--r-- | src/cairo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h index e48157252..c252c7141 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -1430,6 +1430,13 @@ cairo_font_options_set_hint_metrics (cairo_font_options_t *options, cairo_public cairo_hint_metrics_t cairo_font_options_get_hint_metrics (const cairo_font_options_t *options); +cairo_public const char * +cairo_font_options_get_variations (cairo_font_options_t *options); + +cairo_public void +cairo_font_options_set_variations (cairo_font_options_t *options, + const char *variations); + /* This interface is for dealing with text as text, not caring about the font object inside the the cairo_t. */ |