summaryrefslogtreecommitdiff
path: root/pango/fonts.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-08 13:47:52 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-11-08 13:47:52 +0000
commit78d4efd6af8fc37b93b1dafb7c3b7101b389a565 (patch)
tree857deeac1c70f10038c2e967d0238f1845964533 /pango/fonts.c
parent9d389e936707ebcf84fbc64d07b8aa17cdf2ef04 (diff)
parent1790dbf9da8a4249528833ead1af32d232861b64 (diff)
downloadpango-78d4efd6af8fc37b93b1dafb7c3b7101b389a565.tar.gz
Merge branch 'small-caps' into 'main'
Emulate Small Caps if not available from the font See merge request GNOME/pango!497
Diffstat (limited to 'pango/fonts.c')
-rw-r--r--pango/fonts.c7
1 files changed, 6 insertions, 1 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[] = {