summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2023-02-08 20:09:15 +1030
committerAdrian Johnson <ajohnson@redneon.com>2023-02-08 20:09:15 +1030
commite85c242f0a4306f829b9587233dd366f2443a620 (patch)
treeee5ebacd6add423a3538056b60efadae32e8ca29 /src/cairoint.h
parent4fbc2ea3869a5148529ee59161d78952b64bb697 (diff)
downloadcairo-e85c242f0a4306f829b9587233dd366f2443a620.tar.gz
Implement a font options compare function and use it in gstate
Valgrind is not happy with the memcmp() to compare font options and it won't work correctly with variations and custom_palette.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 5ce747ee4..6682e4b30 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -897,6 +897,10 @@ cairo_private void
_cairo_font_options_init_copy (cairo_font_options_t *options,
const cairo_font_options_t *other);
+cairo_private cairo_bool_t
+_cairo_font_options_compare (const cairo_font_options_t *a,
+ const cairo_font_options_t *b);
+
cairo_private void
_cairo_font_options_fini (cairo_font_options_t *options);