diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-05 07:37:31 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-01-03 12:41:46 +0000 |
commit | efa66e7b634050ef395418b544b012a4a5183973 (patch) | |
tree | 4823301a56e843fb864b7e25b8aef5f530e51f2d /pango/pangofc-fontmap.h | |
parent | 95c2aaaa9a1f0167e832a3d31700ae51e519fff4 (diff) | |
download | pango-efa66e7b634050ef395418b544b012a4a5183973.tar.gz |
Add initial support for OpenType font variations
This commit lets PangoFontDescription carry font variation
information as a string. Only pangocairo has been updated
to make use of this information. We pass it to harfbuzz
for shaping, and we pass it to cairo when creating scaled
fonts.
Diffstat (limited to 'pango/pangofc-fontmap.h')
-rw-r--r-- | pango/pangofc-fontmap.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h index 4dab0839..63452a83 100644 --- a/pango/pangofc-fontmap.h +++ b/pango/pangofc-fontmap.h @@ -71,6 +71,8 @@ PANGO_AVAILABLE_IN_1_24 const PangoMatrix *pango_fc_font_key_get_matrix (const PangoFcFontKey *key); PANGO_AVAILABLE_IN_1_24 gpointer pango_fc_font_key_get_context_key (const PangoFcFontKey *key); +PANGO_AVAILABLE_IN_1_40 +const char *pango_fc_font_key_get_variations (const PangoFcFontKey *key); #endif @@ -311,6 +313,17 @@ PangoFontDescription *pango_fc_font_description_from_pattern (FcPattern *pattern */ #define PANGO_FC_FONT_FEATURES "fontfeatures" +/** + * PANGO_FC_FONT_VARIATIONS: + * + * String representing a fontconfig property name that Pango reads from font + * patterns to populate list of OpenType font variations to be used for a font. + * + * The property will have a number of string elements, each of which is the + * OpenType axis setting of the form AXIS=VALUE. + */ +#define PANGO_FC_FONT_VARIATIONS "fontvariations" + G_END_DECLS #endif /* __PANGO_FC_FONT_MAP_H__ */ |