[pango/pango2: 34/44] testhbfont.c: Fix building on non-FontConfig
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 34/44] testhbfont.c: Fix building on non-FontConfig
- Date: Thu, 16 Jun 2022 00:50:34 +0000 (UTC)
commit 41fc72207b30d18e6a0a846917c65c814015c689
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 8ee20319..293c04cb 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]