summaryrefslogtreecommitdiff
path: root/src/cairo-scaled-font-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-04-07 20:38:09 -0400
committerBehdad Esfahbod <behdad@behdad.org>2017-07-29 12:30:50 +0100
commit0d8859c66fb82a00147ab77d1971111306ca2272 (patch)
tree7a01ece928a78c0376fc6837926ae7f2344d75b9 /src/cairo-scaled-font-private.h
parent0fadb2c56d855560810205d78975450ddce271df (diff)
Add support for color glyphs to cairo_scaled_glyph_t
With this, glyphs can have either a surface that is expected to be used as mask, or a color_surface that should be used as source, or both. This will be used to support colored emoji glyphs that are stored as PNG images in OpenType fonts.
Diffstat (limited to 'src/cairo-scaled-font-private.h')
-rw-r--r--src/cairo-scaled-font-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-scaled-font-private.h b/src/cairo-scaled-font-private.h
index da7b34698..6ce6bb6dd 100644
--- a/src/cairo-scaled-font-private.h
+++ b/src/cairo-scaled-font-private.h
@@ -141,6 +141,7 @@ struct _cairo_scaled_glyph {
cairo_image_surface_t *surface; /* device-space image */
cairo_path_fixed_t *path; /* device-space outline */
cairo_surface_t *recording_surface; /* device-space recording-surface */
+ cairo_image_surface_t *color_surface; /* device-space color image */
const void *dev_private_key;
void *dev_private;