[pango/simple-fontmap: 15/17] test-itemize: Leave out faceid




commit 526c9b6a68236ac961891d722ef063fa63b736f9
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 4 23:33:19 2022 -0500

    test-itemize: Leave out faceid
    
    The faceid in the serialized font description would
    make the test output backend-dependent, so leave it
    out for now. This makes
    
    PANGOCAIRO_BACKEND=fc2 ./test-itemize
    
    succeed.

 tests/test-itemize.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index e5775985..279bcb9a 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -171,6 +171,8 @@ test_file (const gchar *filename, GString *string)
       GSList *a;
 
       desc = pango_font_describe (item->analysis.font);
+      /* Leave out faceid for now to avoid backend-dependent test output */
+      pango_font_description_unset_fields (desc, PANGO_FONT_MASK_FACEID);
       font = pango_font_description_to_string (desc);
 
       if (l != items)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]