[pango] [test] Use latin-only font



commit ec00fb5d78cd9ba996859db924119ffaa54938e0
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Sep 1 13:33:57 2015 +0100

    [test] Use latin-only font
    
    Exposes an assertion failure:
    https://bugzilla.gnome.org/show_bug.cgi?id=541608

 tests/testiter.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/testiter.c b/tests/testiter.c
index 1d8069b..fd6b123 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. */


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