You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImageMagick suddenly began to raise an Magick::ImageMagickError stating that it is unable to read font 'Helvetica' @ error/annotate.c/RenderFreetype/1396 when running a unit test for a Ruby on Rails app through CI using GitHub Actions. This is raised when installing either gsfonts or ghostscript. The unit test previously passed and it was only in the last 4 days that the error started to be raised.
The ImageMagick package is looking for the font installation in the /usr/local so in the CI workflow we install the font paths to make Github Actions pass.
First to see what fonts are installed, I ran this command locally:
convert -list font
For Helvetica it shown under the usr/local path:
Font: fixed
family: Helvetica
style: Normal
stretch: Normal
weight: 400
glyphs: /usr/local/share/ghostscript/fonts/n019003l.pfb
In Github Actions there will be no such path, so it seems that ghostscript fonts (or gsfonts) must be included.
Description
ImageMagick suddenly began to raise an
Magick::ImageMagickError
stating that it isunable to read font 'Helvetica' @ error/annotate.c/RenderFreetype/1396
when running a unit test for a Ruby on Rails app through CI using GitHub Actions. This is raised when installing eithergsfonts
orghostscript
. The unit test previously passed and it was only in the last 4 days that the error started to be raised.The ImageMagick package is looking for the font installation in the
/usr/local
so in the CI workflow we install the font paths to make Github Actions pass.First to see what fonts are installed, I ran this command locally:
For Helvetica it shown under the usr/local path:
In Github Actions there will be no such path, so it seems that ghostscript fonts (or gsfonts) must be included.
Again, this unit test previously passed and it was only in the last 4 days that the error started to be raised.
Steps to Reproduce
We have a service that contains two actions for drawing something on an image. The class is being instantiated in the following way:
System Configuration
4.2.5
3.1.1
The text was updated successfully, but these errors were encountered: