test_enumerate fails when first family is Cantarell
Building Pango 1.46.0 for Arch Linux, the newly added test_enumerate
fails:
17/19 test-font ERROR 0.46s
--- command ---
18:55:57 G_TEST_SRCDIR='/build/pango/src/pango/tests' G_TEST_BUILDDIR='/build/pango/src/build/tests' srcdir='/build/pango/src/pango/tests' /build/pango/src/build/tests/test-font -k --tap
--- stdout ---
# random seed: R02S396781c2c32541a3a42056f963186720
1..6
# Start of pango tests
# Start of font tests
# Cantarell 11 metrics
# ascent: 14764
# descent: 3259
# height: 18023
# char width: 6768
# digit width: 9216
# underline position: -1502
# underline thickness: 751
# strikethrough position: 4340
# strikethrough thickness: 751
ok 1 /pango/font/metrics
ok 2 /pango/font/extents
Bail out! ERROR:../pango/tests/test-font.c:220:test_enumerate: 'face == faces[i]' should be TRUE
--- stderr ---
**
ERROR:../pango/tests/test-font.c:220:test_enumerate: 'face == faces[i]' should be TRUE
(test program exited with status code -6)
In this environment, families[0]
is Cantarell 0.201. The complete list of installed font files is:
-rw-r--r-- 1 root root 149108 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-Bold.otf
-rw-r--r-- 1 root root 151544 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-ExtraBold.otf
-rw-r--r-- 1 root root 148088 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-Light.otf
-rw-r--r-- 1 root root 145268 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-Regular.otf
-rw-r--r-- 1 root root 148252 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-Thin.otf
-rw-r--r-- 1 root root 138832 Jan 13 2020 /usr/share/fonts/cantarell/Cantarell-VF.otf
-rw-r--r-- 1 root root 577616 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuMathTeXGyre.ttf
-rw-r--r-- 1 root root 643288 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf
-rw-r--r-- 1 root root 705684 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSans-Bold.ttf
-rw-r--r-- 1 root root 641696 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansCondensed-BoldOblique.ttf
-rw-r--r-- 1 root root 703880 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansCondensed-Bold.ttf
-rw-r--r-- 1 root root 633824 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansCondensed-Oblique.ttf
-rw-r--r-- 1 root root 755124 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansCondensed.ttf
-rw-r--r-- 1 root root 356760 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSans-ExtraLight.ttf
-rw-r--r-- 1 root root 253580 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf
-rw-r--r-- 1 root root 331992 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf
-rw-r--r-- 1 root root 251932 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf
-rw-r--r-- 1 root root 340712 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSansMono.ttf
-rw-r--r-- 1 root root 635412 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSans-Oblique.ttf
-rw-r--r-- 1 root root 757076 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSans.ttf
-rw-r--r-- 1 root root 358820 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerif-BoldItalic.ttf
-rw-r--r-- 1 root root 356088 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerif-Bold.ttf
-rw-r--r-- 1 root root 357888 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerifCondensed-BoldItalic.ttf
-rw-r--r-- 1 root root 355220 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerifCondensed-Bold.ttf
-rw-r--r-- 1 root root 358324 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerifCondensed-Italic.ttf
-rw-r--r-- 1 root root 379296 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerifCondensed.ttf
-rw-r--r-- 1 root root 359000 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerif-Italic.ttf
-rw-r--r-- 1 root root 380132 Jun 29 09:28 /usr/share/fonts/TTF/DejaVuSerif.ttf
The failure can be worked around by including the Noto fonts in the build environment.