summaryrefslogtreecommitdiff
path: root/pango/pango-fontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-16 06:56:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-06-22 13:57:26 -0400
commit1bcf743b9e9aab8e0a085fdb415fb379423861ed (patch)
tree4907891f1f7b1f8b5ff94ca7097be73a2d4e75a3 /pango/pango-fontmap.c
parent2421cf7deec6c898a418eebc99e49c42ee2a4d15 (diff)
downloadpango-1bcf743b9e9aab8e0a085fdb415fb379423861ed.tar.gz
Allow variant information in face descriptions
This is needed to fix small-caps roundtrips on MacOS.
Diffstat (limited to 'pango/pango-fontmap.c')
-rw-r--r--pango/pango-fontmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/pango-fontmap.c b/pango/pango-fontmap.c
index 99fbae64..fbcd4c86 100644
--- a/pango/pango-fontmap.c
+++ b/pango/pango-fontmap.c
@@ -874,8 +874,7 @@ pango_font_map_add_face (PangoFontMap *self,
description = face->description;
- if (pango_font_description_get_set_fields (description) &
- (PANGO_FONT_MASK_VARIANT | PANGO_FONT_MASK_GRAVITY))
+ if (pango_font_description_get_set_fields (description) & PANGO_FONT_MASK_GRAVITY)
g_warning ("Font description for PangoFontFace includes things that it shouldn't");
if (!self->in_populate)