GtkTextView: Support font features

Add a ::font-features attribute to GtkTextTag, and support
font features when inserting Pango markup into a text buffer.
This commit is contained in:
Matthias Clasen
2015-07-29 18:28:56 -04:00
parent 98f9532a22
commit c6838fbff0
6 changed files with 86 additions and 5 deletions

View File

@ -207,8 +207,23 @@ struct _GtkTextAttributes
/*< public >*/
gint letter_spacing;
#ifdef __GI_SCANNER__
/* The scanner should only see the transparent union, so that its
* content does not vary across architectures.
*/
union {
gchar *font_features;
/*< private >*/
guint padding[2];
};
#else
gchar *font_features;
#if (defined(__SIZEOF_INT__) && defined(__SIZEOF_POINTER__)) && (__SIZEOF_INT__ == __SIZEOF_POINTER__)
/* unusable, just for ABI compat */
/*< private >*/
guint padding[2];
guint padding[1];
#endif
#endif
};
GDK_AVAILABLE_IN_ALL