diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-06 21:31:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-07 09:59:09 -0500 |
commit | 6b7b3e9adb92bf10ab3c27466eb5276428865c0a (patch) | |
tree | b7eefc0227e118645ef83b314c62c5d154df27fd /pango | |
parent | 0e5bd15d24d31eede8d6f664f5e15b2a508a6169 (diff) | |
download | pango-6b7b3e9adb92bf10ab3c27466eb5276428865c0a.tar.gz |
Add more casing variants
Add values for all the css casing variants to
the PangoVariant enum.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/fonts.c | 7 | ||||
-rw-r--r-- | pango/pango-font.h | 26 |
2 files changed, 30 insertions, 3 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index fd98d91e..70a987e6 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1019,7 +1019,12 @@ static const FieldMap style_map[] = { static const FieldMap variant_map[] = { { PANGO_VARIANT_NORMAL, "" }, - { PANGO_VARIANT_SMALL_CAPS, "Small-Caps" } + { PANGO_VARIANT_SMALL_CAPS, "Small-Caps" }, + { PANGO_VARIANT_ALL_SMALL_CAPS, "All-Small-Caps" }, + { PANGO_VARIANT_PETITE_CAPS, "Petite-Caps" }, + { PANGO_VARIANT_ALL_PETITE_CAPS, "All-Petite-Caps" }, + { PANGO_VARIANT_UNICASE, "Unicase" }, + { PANGO_VARIANT_TITLE_CAPS, "Title-Caps" } }; static const FieldMap weight_map[] = { diff --git a/pango/pango-font.h b/pango/pango-font.h index d4bded86..6f3284fa 100644 --- a/pango/pango-font.h +++ b/pango/pango-font.h @@ -81,13 +81,35 @@ typedef enum { * PangoVariant: * @PANGO_VARIANT_NORMAL: A normal font. * @PANGO_VARIANT_SMALL_CAPS: A font with the lower case characters - * replaced by smaller variants of the capital characters. + * replaced by smaller variants of the capital characters. + * @PANGO_VARIANT_ALL_SMALL_CAPS: A font with all characters + * replaced by smaller variants of the capital characters. + * Since: 1.50 + * @PANGO_VARIANT_PETITE_CAPS: A font with the lower case characters + * replaced by smaller variants of the capital characters. + * Petite Caps can be even smaller than Small Caps. + * Since: 1.50 + * @PANGO_VARIANT_ALL_PETITE_CAPS: A font with all characters + * replaced by smaller variants of the capital characters. + * Petite Caps can be even smaller than Small Caps. + * Since: 1.50 + * @PANGO_VARIANT_UNICASE: A font with the upper case characters + * replaced by smaller variants of the capital letters. + * Since: 1.50 + * @PANGO_VARIANT_TITLE_CAPS: A font with capital letters that + * are more suitable for all-uppercase titles. + * Since: 1.50 * * An enumeration specifying capitalization variant of the font. */ typedef enum { PANGO_VARIANT_NORMAL, - PANGO_VARIANT_SMALL_CAPS + PANGO_VARIANT_SMALL_CAPS, + PANGO_VARIANT_ALL_SMALL_CAPS, + PANGO_VARIANT_PETITE_CAPS, + PANGO_VARIANT_ALL_PETITE_CAPS, + PANGO_VARIANT_UNICASE, + PANGO_VARIANT_TITLE_CAPS } PangoVariant; /** |