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-private.h | |
parent | 9cb392f306e96534337b177eeee4e1239e8ab337 (diff) | |
download | pango-d4cf0b1c8dcdef31644879d6fbae11002828b927.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-private.h')
-rw-r--r-- | pango/pangocairo-private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pangocairo-private.h b/pango/pangocairo-private.h index 704ae497..7c86d950 100644 --- a/pango/pangocairo-private.h +++ b/pango/pangocairo-private.h @@ -102,7 +102,10 @@ struct _PangoCairoFontIface }; gboolean _pango_cairo_font_install (PangoFont *font, - cairo_t *cr); + cairo_t *cr, + gboolean has_light_background); +gboolean _pango_cairo_font_uninstall (PangoFont *font, + cairo_t *cr); PangoFontMetrics * _pango_cairo_font_get_metrics (PangoFont *font, PangoLanguage *language); PangoCairoFontHexBoxInfo *_pango_cairo_font_get_hex_box_info (PangoCairoFont *cfont); |