rubyroyd blog

RMagic and simple_captcha on Mac

If you get this error after installing macports ImageMagick, RMagic ruby gem and simple_captcha rails plugin

1
2
Magick::ImageMagickError
 (unable to read font `/Library/Fonts/Arial' @ annotate.c/RenderFreetype/1307: `(null)'):

try to change font in /vendor/plugins/simple_captcha/lib/simple_captcha_image.rb

1
        self.font_family = 'verdana'

Worked for me.

  1. ROCHA28Randi says:

    Make your own life more simple get the <a href="http://goodfinance-blog.com/topics/business-loans">business loans</a> and everything you want.

Post a comment


(lesstile enabled - surround code blocks with ---)

simple_captcha.jpg
(type the code from the image)