summaryrefslogtreecommitdiff
path: root/tests/testhbfont.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2022-06-15 10:27:53 +0800
committerMatthias Clasen <mclasen@redhat.com>2022-06-22 13:57:26 -0400
commitd6e561a3632d64d97d3ac03616034248e13890a8 (patch)
treeef3a355fe7cec6f81bf0873e864e26dfbb0f6071 /tests/testhbfont.c
parent3ac43e7de663aa36d140b1c9e39d7a10aa669faa (diff)
downloadpango-d6e561a3632d64d97d3ac03616034248e13890a8.tar.gz
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.
Diffstat (limited to 'tests/testhbfont.c')
-rw-r--r--tests/testhbfont.c3
1 files changed, 1 insertions, 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");