summaryrefslogtreecommitdiff
path: root/pango/pangocoretext-fontmap.c
diff options
context:
space:
mode:
authorCody Russell <cody@jhu.edu>2014-10-31 22:43:01 -0500
committerCody Russell <cody@jhu.edu>2014-10-31 22:43:01 -0500
commit91024c84f73ddefb4bde174e0a1689b2d136a9b6 (patch)
tree5df4adfacd7c47ccd8acb3c8e625747a1852c28c /pango/pangocoretext-fontmap.c
parentfa6ded9b0d065634481d8ae4126fdea0b88e3558 (diff)
downloadpango-91024c84f73ddefb4bde174e0a1689b2d136a9b6.tar.gz
Check kCTFontCondensedTrait when creating from CTFontDescriptionRef.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734372
Diffstat (limited to 'pango/pangocoretext-fontmap.c')
-rw-r--r--pango/pangocoretext-fontmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 9656fb8c..168b47e9 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -413,6 +413,9 @@ _pango_core_text_font_description_from_ct_font_descriptor (CTFontDescriptorRef d
else
pango_font_description_set_style (font_desc, PANGO_STYLE_NORMAL);
+ if ((font_traits & kCTFontCondensedTrait) == kCTFontCondensedTrait)
+ pango_font_description_set_stretch (font_desc, PANGO_STRETCH_CONDENSED);
+
if (ct_font_descriptor_is_small_caps (desc))
pango_font_description_set_variant (font_desc, PANGO_VARIANT_SMALL_CAPS);
else