diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 01:35:01 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-09-01 01:35:01 -0400 |
commit | 54b0d3fd39f841ba8ebc9efa153bd23c9efb2c4c (patch) | |
tree | fb8eb200b43f79c385b9e5eabc0f825373cc8914 /pango/pango-glyph.h | |
parent | 923284062075fd2fe1b061d256f91aec2912b1ab (diff) | |
download | pango-54b0d3fd39f841ba8ebc9efa153bd23c9efb2c4c.tar.gz |
shape: Mark color glyphs in glyphstrings
GTK needs this information to decide how to
render the glyphs, so provide it.
Diffstat (limited to 'pango/pango-glyph.h')
-rw-r--r-- | pango/pango-glyph.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h index cd29b77a..fae7168c 100644 --- a/pango/pango-glyph.h +++ b/pango/pango-glyph.h @@ -89,16 +89,18 @@ struct _PangoGlyphGeometry * are always ordered in logical order, since visual order is meaningless; * that is, in Arabic text, accent glyphs follow the glyphs for the * base character.) + * @is_color: set if the the font will render this glyph with color. Since 1.50 * * A `PangoGlyphVisAttr` structure communicates information between * the shaping and rendering phases. * - * Currently, it contains only cluster start information. More attributes - * may be added in the future. + * Currently, it contains cluster start and color information. + * More attributes may be added in the future. */ struct _PangoGlyphVisAttr { guint is_cluster_start : 1; + guint is_color : 1; }; /* A single glyph |