diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-03 16:25:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-08-03 16:30:23 -0400 |
commit | c3c030744fe75b987455a0e999bf12158c0a24a0 (patch) | |
tree | 0a366fb3a5576530ca62292db6e6244d53391ef0 /tests/test-harfbuzz.c | |
parent | 15d643ea3d8c1af1ec8d4b452a8b3e9246e21928 (diff) | |
download | pango-c3c030744fe75b987455a0e999bf12158c0a24a0.tar.gz |
Fix the harfbuzz test for win32
Diffstat (limited to 'tests/test-harfbuzz.c')
-rw-r--r-- | tests/test-harfbuzz.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-harfbuzz.c b/tests/test-harfbuzz.c index f9392b67..cba9026c 100644 --- a/tests/test-harfbuzz.c +++ b/tests/test-harfbuzz.c @@ -37,7 +37,10 @@ test_hb_font (void) hb_bool_t res; hb_codepoint_t glyph; - desc = pango_font_description_from_string ("Cantarell 11"); + if (strcmp (G_OBJECT_TYPE_NAME (pango_context_get_font_map (context)), "PangoCairoWin32FontMap") == 0) + desc = pango_font_description_from_string ("Verdana 11"); + else + desc = pango_font_description_from_string ("Cantarell 11"); font = pango_context_load_font (context, desc); hb_font = pango_font_get_hb_font (font); |