summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-12-18 21:21:03 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-01-03 12:41:46 +0000
commit6a9c066a94ba26a4996990595b854486377067d8 (patch)
treed716441057fadf4a46add1e574204f228e37e0ef
parent4713461215679eba6ccf3355e8fd04f94b1961aa (diff)
downloadpango-6a9c066a94ba26a4996990595b854486377067d8.tar.gz
[fc] Request variable fonts from fontconfig
-rw-r--r--pango/pangofc-fontmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index c5e95c44..871b2704 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -1513,6 +1513,9 @@ pango_fc_make_pattern (const PangoFontDescription *description,
#ifdef FC_VERTICAL_LAYOUT
FC_VERTICAL_LAYOUT, FcTypeBool, vertical,
#endif
+#ifdef FC_VARIABLE
+ FC_VARIABLE, FcTypeBool, FcDontCare,
+#endif
FC_DPI, FcTypeDouble, dpi,
FC_SIZE, FcTypeDouble, pixel_size * (72. / 1024. / dpi),
FC_PIXEL_SIZE, FcTypeDouble, pixel_size / 1024.,