summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-09-01 13:33:57 +0100
committerBehdad Esfahbod <behdad@behdad.org>2015-09-01 13:33:57 +0100
commitec00fb5d78cd9ba996859db924119ffaa54938e0 (patch)
tree6a3a02054e54f7fdf7a5ff0a075d9cfcd11ae9a0
parent40a96ff4cb86ebcd7a9025ed73b5c754a9d314c8 (diff)
downloadpango-ec00fb5d78cd9ba996859db924119ffaa54938e0.tar.gz
[test] Use latin-only font
Exposes an assertion failure: https://bugzilla.gnome.org/show_bug.cgi?id=541608
-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. */