[pango/wip/matthiasc/font-variations: 27/30] [fc] Request variable fonts from fontconfig



commit 6a9c066a94ba26a4996990595b854486377067d8
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Dec 18 21:21:03 2017 -0500

    [fc] Request variable fonts from fontconfig

 pango/pangofc-fontmap.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index c5e95c4..871b270 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.,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]