Closed AlexDaniel closed 5 years ago
Unable to find some fonts, which is causing test failures.
@dwarring is there something I should install to make it pass?
@AlexDaniel you could try gsfonts.
Sorry, on my Debian system it's actually finding fonts from fonts-dejavu-core:
% fc-match -f '%{file}\n' ariel:weight=bold
/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
% dpkg-query -S /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
fonts-dejavu-core: /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
so that package might be the one that's needed.
Ah-ha, OK, I'll try that, if it works the issue will be closed. I added native dependency
label because there's no better label… Thanks!
Btw, HTML::Canvas is using the font-font
method from CSS::Properties::Font which just run an fc-match
shell-command as above.
I'll also update the README. Seems the module needs some fonts to be installed.
dang! arial, not ariel: % fc-match -f '%{file}\n' arial:weight=bold
. Which finds a font from a different package: font-liberation.
% fc-match -f '%{file}\n' arial:weight=bold
/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
% dpkg-query -S /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
fonts-liberation: /usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf
As long as fc-match can find both 'courier:weight=bold' and 'arial:weight=bold'
I've add a monospace font to the module's resources, which is used as a fallback when fc-match fails to find a font. Should ease automated testing and initial install of this module.
Readme also updated.
Uploaded to CPAN as HTML::Canvas 0.0.6
@dwarring thank you!
Module HTML::Canvas cannot be installed (
AlwaysFail
), perhaps it has some failing tests.works for me
label, leave a comment saying that it works for you and mention any details that you feel are important.native dependency
label, describe what you did to install it and ensure that same instructions are present in the README file of the module (otherwise submit a pull request). Also try to update this wiki page.PR sent
label.failing dependency
label and write a comment explaining the situation. Feel free to work on the corresponding ticket for the failing dependency.If you can't self-assign yourself or attach a label, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.
Output:
Ping @p6-css
Previous ticket: #199