summaryrefslogtreecommitdiff
path: root/pango/pangocairo-fc-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-13 13:19:45 -0600
committerMatthias Clasen <mclasen@redhat.com>2022-02-13 13:19:45 -0600
commitd4cf0b1c8dcdef31644879d6fbae11002828b927 (patch)
treecdf42ee36f3f1802aa6dbcd104633d8af94607da /pango/pangocairo-fc-private.h
parent9cb392f306e96534337b177eeee4e1239e8ab337 (diff)
downloadpango-font-palette-api.tar.gz
wip: Add an api to select palettes for color glyphsfont-palette-api
This commit adds a light-background attribute that can be used to influence which palette will be used to render COLRv0 layered glyphs with color fonts that have multiple palettes. This needs a way for cairo to invalidate its glyph cache when the selected palette changes, which needs new freetype api.
Diffstat (limited to 'pango/pangocairo-fc-private.h')
-rw-r--r--pango/pangocairo-fc-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pangocairo-fc-private.h b/pango/pangocairo-fc-private.h
index 370ecbea..78404ce1 100644
--- a/pango/pangocairo-fc-private.h
+++ b/pango/pangocairo-fc-private.h
@@ -39,6 +39,12 @@ struct _PangoCairoFcFontMap
PangoFcFont *_pango_cairo_fc_font_new (PangoCairoFcFontMap *cffontmap,
PangoFcFontKey *key);
+void pango_cairo_fc_font_install (PangoFcFont *font,
+ cairo_t *cr,
+ gboolean has_light_background);
+void pango_cairo_fc_font_uninstall (PangoFcFont *font,
+ cairo_t *cr);
+
G_END_DECLS
#endif /* __PANGOCAIRO_FC_PRIVATE_H__ */