diff options
Diffstat (limited to 'pango/pango-font.h')
-rw-r--r-- | pango/pango-font.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/pango/pango-font.h b/pango/pango-font.h index 4af31a95..cc7e1ae5 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -146,19 +146,21 @@ typedef enum { * @PANGO_FONT_MASK_SIZE: the font size is specified. * @PANGO_FONT_MASK_GRAVITY: the font gravity is specified (Since: 1.16.) * @PANGO_FONT_MASK_VARIATIONS: OpenType font variations are specified (Since: 1.42) + * @PANGO_FONT_MASK_FEATURES: OpenType font features are specified (Since: 1.44) * * The bits in a #PangoFontMask correspond to fields in a * #PangoFontDescription that have been set. */ typedef enum { - PANGO_FONT_MASK_FAMILY = 1 << 0, - PANGO_FONT_MASK_STYLE = 1 << 1, - PANGO_FONT_MASK_VARIANT = 1 << 2, - PANGO_FONT_MASK_WEIGHT = 1 << 3, - PANGO_FONT_MASK_STRETCH = 1 << 4, - PANGO_FONT_MASK_SIZE = 1 << 5, - PANGO_FONT_MASK_GRAVITY = 1 << 6, + PANGO_FONT_MASK_FAMILY = 1 << 0, + PANGO_FONT_MASK_STYLE = 1 << 1, + PANGO_FONT_MASK_VARIANT = 1 << 2, + PANGO_FONT_MASK_WEIGHT = 1 << 3, + PANGO_FONT_MASK_STRETCH = 1 << 4, + PANGO_FONT_MASK_SIZE = 1 << 5, + PANGO_FONT_MASK_GRAVITY = 1 << 6, PANGO_FONT_MASK_VARIATIONS = 1 << 7, + PANGO_FONT_MASK_FEATURES = 1 << 8 } PangoFontMask; /* CSS scale factors (1.2 factor between each size) */ @@ -288,6 +290,15 @@ void pango_font_description_set_variations (PangoFontDescript PANGO_AVAILABLE_IN_1_42 const char *pango_font_description_get_variations (const PangoFontDescription *desc) G_GNUC_PURE; +PANGO_AVAILABLE_IN_1_44 +void pango_font_description_set_features_static (PangoFontDescription *desc, + const char *features); +PANGO_AVAILABLE_IN_1_44 +void pango_font_description_set_features (PangoFontDescription *desc, + const char *features); +PANGO_AVAILABLE_IN_1_44 +const char *pango_font_description_get_features (const PangoFontDescription *desc) G_GNUC_PURE; + PANGO_AVAILABLE_IN_ALL PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE; PANGO_AVAILABLE_IN_ALL |