diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-01-10 16:25:11 -0600 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-01-10 16:27:04 -0600 |
commit | db410d8ebdbc5b697430617e761da6b5ce4940dd (patch) | |
tree | aca2d521f4dff4a76f74ee9c9dcad3c2dd5e416c /pango/pangofc-fontmap.h | |
parent | 0df2e9592be488dcb3f3edfdfae64086e924eb92 (diff) | |
download | pango-db410d8ebdbc5b697430617e761da6b5ce4940dd.tar.gz |
Let people enable font features through fontconfig snippets
Like this:
<match target="font">
<edit name="pangofontfeatures" mode="append">
<string>smcp</string>
<string>ss20</string>
</edit>
</match>
Finally we are starting to see new features coming out of the HarfBuzz integration...
Diffstat (limited to 'pango/pangofc-fontmap.h')
-rw-r--r-- | pango/pangofc-fontmap.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.h b/pango/pangofc-fontmap.h index 3809446b..73d1cc99 100644 --- a/pango/pangofc-fontmap.h +++ b/pango/pangofc-fontmap.h @@ -266,6 +266,20 @@ PangoFontDescription *pango_fc_font_description_from_pattern (FcPattern *pattern */ #define PANGO_FC_PRGNAME "pangoprgname" +/** + * PANGO_FC_FONT_FEATURES: + * + * String representing a fontconfig property name that Pango reads from font + * patterns to populate list of OpenType features to be enabled for the font + * by default. + * + * The property will have a number of string elements, each of which is the + * OpenType feature tag of one feature to enable. + * + * Since: 1.34 + */ +#define PANGO_FC_FONT_FEATURES "pangofontfeatures" + G_END_DECLS #endif /* __PANGO_FC_FONT_MAP_H__ */ |