linux-packaging-mono/external/bockbuild/packages/patches/pango-coretext-condensed-trait.patch
Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

15 lines
644 B
Diff

diff --git a/pango/pangocoretext-fontmap.c b/pango/pangocoretext-fontmap.c
index 53b2676..2b30a07 100644
--- a/pango/pangocoretext-fontmap.c
+++ b/pango/pangocoretext-fontmap.c
@@ -411,6 +411,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