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



commit 1c770185bda8883869fa622713727f5787d62374
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..4546348 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, FcTrue,
+#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]