[pango/bitmap-font-tests] tests: Be more careful about font formats
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/bitmap-font-tests] tests: Be more careful about font formats
- Date: Wed, 30 Jun 2021 18:09:39 +0000 (UTC)
commit b3ae4cdfe4cf0f64c552644414b2a8fbc6c624e2
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 30 14:07:11 2021 -0400
tests: Be more careful about font formats
It turns out that we can still see non-scalable fonts
which report a list of sizes. Take that into account.
Fixes: #570
tests/test-font.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/tests/test-font.c b/tests/test-font.c
index e2147485..52db3027 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -346,9 +346,7 @@ test_font_models (void)
g_assert_true (pango_font_face_get_family (PANGO_FONT_FACE (obj2)) == (PangoFontFamily *)obj);
pango_font_face_list_sizes (PANGO_FONT_FACE (obj2), &sizes, &n_sizes);
- /* no more bitmap fonts */
- g_assert_null (sizes);
- g_assert_cmpint (n_sizes, ==, 0);
+ g_assert_true ((sizes == NULL) == (n_sizes == 0));
g_object_unref (obj2);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]