[pango/round-glyphs-option: 5/5] Fix the harfbuzz test for win32
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/round-glyphs-option: 5/5] Fix the harfbuzz test for win32
- Date: Sat, 3 Aug 2019 20:30:54 +0000 (UTC)
commit c3c030744fe75b987455a0e999bf12158c0a24a0
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 3 16:25:26 2019 -0400
Fix the harfbuzz test for win32
tests/test-harfbuzz.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]