summaryrefslogtreecommitdiff
path: root/tests/testiter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testiter.c')
-rw-r--r--tests/testiter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testiter.c b/tests/testiter.c
index 1d8069b6..fd6b1233 100644
--- a/tests/testiter.c
+++ b/tests/testiter.c
@@ -212,10 +212,13 @@ test_layout_iter (void)
const char **ptext;
PangoFontMap *fontmap;
PangoContext *context;
+ PangoFontDescription *font_desc;
PangoLayout *layout;
fontmap = pango_cairo_font_map_get_default ();
context = pango_font_map_create_context (fontmap);
+ font_desc = pango_font_description_from_string ("cantarell 11");
+ pango_context_set_font_description (context, font_desc);
layout = pango_layout_new (context);
pango_layout_set_width (layout, LAYOUT_WIDTH);
@@ -241,6 +244,7 @@ test_glyphitem_iter (void)
{
PangoFontMap *fontmap;
PangoContext *context;
+ PangoFontDescription *font_desc;
PangoLayout *layout;
PangoLayoutLine *line;
const char *text;
@@ -248,6 +252,8 @@ test_glyphitem_iter (void)
fontmap = pango_cairo_font_map_get_default ();
context = pango_font_map_create_context (fontmap);
+ font_desc = pango_font_description_from_string ("cantarell 11");
+ pango_context_set_font_description (context, font_desc);
layout = pango_layout_new (context);
/* This shouldn't form any ligatures. */