summaryrefslogtreecommitdiff
path: root/pango/shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/shape.c')
-rw-r--r--pango/shape.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pango/shape.c b/pango/shape.c
index e666bb3d..acf4be59 100644
--- a/pango/shape.c
+++ b/pango/shape.c
@@ -306,6 +306,11 @@ font_has_color (hb_font_t *font)
face = hb_font_get_face (font);
+#if HB_VERSION_ATLEAST (7, 0, 0)
+ if (hb_ot_color_has_paint (face))
+ return TRUE;
+#endif
+
return hb_ot_color_has_layers (face) ||
hb_ot_color_has_png (face) ||
hb_ot_color_has_svg (face);
@@ -320,6 +325,11 @@ glyph_has_color (hb_font_t *font,
face = hb_font_get_face (font);
+#if HB_VERSION_ATLEAST (7, 0, 0)
+ if (hb_ot_color_glyph_has_paint (face, glyph))
+ return TRUE;
+#endif
+
if (hb_ot_color_glyph_get_layers (face, glyph, 0, NULL, NULL) > 0)
return TRUE;