summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-01-28 00:14:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-01-28 18:43:39 -0500
commit4c6078212a87f105fc5c5afba5ccfdf7569b3648 (patch)
treef13b6801b37507dc4a6a078aa73e148e07aa0932
parente821889a04be0f9e9164e6e6088907a5158ac9b2 (diff)
downloadpango-4c6078212a87f105fc5c5afba5ccfdf7569b3648.tar.gz
tests: Adapt
-rw-r--r--tests/testhbfont.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testhbfont.c b/tests/testhbfont.c
index d3e446e6..df37eaea 100644
--- a/tests/testhbfont.c
+++ b/tests/testhbfont.c
@@ -51,7 +51,7 @@ test_hbfont_monospace (void)
g_assert_false (pango_font_family_is_variable (family));
g_assert_false (pango_font_family_is_monospace (family));
- pango_hb_font_map_add_face (map, pango_hb_face_new_from_file (path, 0, -2, NULL, NULL));
+ pango_hb_font_map_add_face (map, PANGO_FONT_FACE (pango_hb_face_new_from_file (path, 0, -2, NULL, NULL)));
g_assert_true (pango_font_family_is_variable (family));
@@ -394,7 +394,7 @@ test_hbfont_load (void)
pango_font_description_free (desc);
g_free (path);
- pango_hb_font_map_add_face (map, face_fat);
+ pango_hb_font_map_add_face (map, PANGO_FONT_FACE (face_fat));
path = g_test_build_filename (G_TEST_DIST, "fonts", "DejaVuSans.ttf", NULL);
desc = pango_font_description_new ();
@@ -402,7 +402,7 @@ test_hbfont_load (void)
face_wild = pango_hb_face_new_from_file (path, 0, -1, "Wild", desc);
pango_font_description_free (desc);
- pango_hb_font_map_add_face (map, face_wild);
+ pango_hb_font_map_add_face (map, PANGO_FONT_FACE (face_wild));
desc = pango_font_face_describe (PANGO_FONT_FACE (face_wild));
pango_font_description_set_size (desc, 12 * PANGO_SCALE);
@@ -460,7 +460,7 @@ test_hbfont_load_variation (void)
pango_font_description_free (desc);
g_free (path);
- pango_hb_font_map_add_face (map, face_fat);
+ pango_hb_font_map_add_face (map, PANGO_FONT_FACE (face_fat));
desc = pango_font_description_new ();
pango_font_description_set_family (desc, "Cat");
@@ -469,7 +469,7 @@ test_hbfont_load_variation (void)
face_wild = pango_hb_face_new_instance (face_fat, &v, 1, "Wild", desc);
pango_font_description_free (desc);
- pango_hb_font_map_add_face (map, face_wild);
+ pango_hb_font_map_add_face (map, PANGO_FONT_FACE (face_wild));
desc = pango_font_face_describe (PANGO_FONT_FACE (face_wild));