Subject: | "Num. of font families=1" t/font.t fails if not enough fonts is installed |
If I have very sparse list of fonts installed, the "Num. of font families=1" t/font.t test fails:
$ xvfb-run -a prove -b -v t/font.t
t/font.t ..
1..34
ok 1 - fontFamilies
not ok 2 - Num. of font families=1
ok 3 - fontActual without font error
ok 4 - fontMeasure documented to require two args, not zero
ok 5 - fontMeasure documented to require two args, not one
# Failed test 'Num. of font families=1'
# at t/font.t line 40.
# '1'
# >
# '1'
I have enabled XFT and use Xfvb X server. I tested the git master code (39ce3fa5).
If I install another font, like liberation-sans-fonts, the test will pass because gathered list of font families expands from ('Gothic') to to ('Gothic', 'Liberation Sans') on the system. I can confirm the values with a freetype command "fc-list : family".
What is the test good for? Does it matter how many different fonts user have available?
-- Petr