diff options
-rw-r--r-- | tests/test-layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c index 58ab46eb..2cbdc042 100644 --- a/tests/test-layout.c +++ b/tests/test-layout.c @@ -238,6 +238,9 @@ test_file (const gchar *filename, GString *string) PangoWrapMode wrap = PANGO_WRAP_WORD; PangoFontDescription *desc; + if (context == NULL) + context = pango_font_map_create_context (pango_cairo_font_map_get_default ()); + g_file_get_contents (filename, &contents, &length, &error); g_assert_no_error (error); |