diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 13:19:45 -0600 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-02-13 13:19:45 -0600 |
commit | d4cf0b1c8dcdef31644879d6fbae11002828b927 (patch) | |
tree | cdf42ee36f3f1802aa6dbcd104633d8af94607da /pango/pangocairo-fc-private.h | |
parent | 9cb392f306e96534337b177eeee4e1239e8ab337 (diff) | |
download | pango-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.h | 6 |
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__ */ |