Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

RubyStack Magick::ImageMagickError (UnableToReadFont (null)

$
0
0

I think this is related to this question: http://answers.bitnami.org/questions/5063/redmine-20-error-when-exporting-gantt-to-png/5143 but the answer didn't work for me.

I have the same problem as the question above, but with RubyStack (not redmine) v. 2.3.14-2 on Ubuntu 12.04:

Magick::ImageMagickError (UnableToReadFont (null)' @ error/annotate.c/RenderFreetype/1120:(null)'):

I did these steps as mentioned above:

copy type.xml and type-ghostscript.xml delegates.xml from: /opt/bitnami/common/share/doc/ImageMagick/www/source/ to: /opt/bitnami/common/lib/ImageMagick-6.7.5/config

change the file type-ghostscript.xml to point to /usr/share/fonts/type1/gsfonts/ instead of /usr/share/fonts/default/Type1/

btw, here is the sed command to do that (do sudo bash first, mv the files to the proper names after):

sed -e 's/\\/usr\\/share\\/fonts\\/default\\/Type1/\\/usr\\/share\\/fonts\\/type1\\/gsfonts/g' < type-ghostscript.xml > type-ghostscript-new.xml

Then I did these:

sudo apt-get remove ghostscript

sudo apt-get install ghostscript

sudo gem install rmagick

restarted unicorn and nginx, but it didn't work.

Then I did the following as suggested at this link: http://rmagick.rubyforge.org/install-faq.html#fonts

convert -list font

(finds fonts now - didn't before the above steps)

convert label:abcdef test.gif

(gives no errors - didn't before the above steps)

At this point I'm stuck. Any advice?


Viewing all articles
Browse latest Browse all 2052

Trending Articles