[pango/pango2: 252/301] testhbfont.c: Fix building on non-FontConfig




commit 7a52c4379c03e62c26eba4e317ce3290dea9bdaf
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jun 15 10:27:53 2022 +0800

    testhbfont.c: Fix building on non-FontConfig
    
    Use the generic pango_font_map_new_default() that accomplishes the same
    thing.  Don't include pangofc-fontmap.h either.

 tests/testhbfont.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tests/testhbfont.c b/tests/testhbfont.c
index 8ee203199..293c04cb3 100644
--- a/tests/testhbfont.c
+++ b/tests/testhbfont.c
@@ -23,7 +23,6 @@
 #include <glib.h>
 #include <gio/gio.h>
 #include <pango/pangocairo.h>
-#include <pango/pangofc-fontmap.h>
 
 #include <hb-ot.h>
 
@@ -514,7 +513,7 @@ test_fontmap_language (void)
   PangoFontset *fonts;
   gboolean found;
 
-  map = PANGO_FONT_MAP (pango_fc_font_map_new ());
+  map = PANGO_FONT_MAP (pango_font_map_new_default ());
   context = pango_font_map_create_context (map);
   desc = pango_font_description_from_string ("serif 11");
 


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