Well this is quickly becoming Mars' notes from building software on OS X blog!
Anyway, after following the official RMagick install, gem install rmagick fails with an error like:
/usr/local/lib/ruby/gems/1.8/gems/rmagick-1.15.7/./lib/rvg/misc.rb:321:
in `get_type_metrics': unable to read font `/Library/Fonts/Verdana' (Magick::ImageMagickError)
It seems that the examples fail because of a spurious font choice in the documented examples.
All that is needed to build the RMagick gem successfully at this point is:
sudo gem install rmagick -- --disable-htmldoc
And voila, the examples aren't built, thereby avoiding the problem.
RMagick!
Hey, did you ever actually use rmagick after installing this way?
I was having the same problem and used the option you mention... rmagick then appears to install fine, but when my rails app tries to generate gruff graphs, I get the "unable to read /Library/Fonts/xxx" error again.
I do not use any type/font features of RMagick, so I've encountered no further problems. It's totally possible that there is really a problem with reading fonts.
Fantastic, man! This is exactly what I was looking for.
Incidentally, are you looking for Rails work at the moment? I've got a guy that's hounding me to work on a project, but I simply haven't got the time.
Works like a charm!
@ben I had the same issue and realized that the referenced file font (/Library/Fonts/xxx) was... empty; eg file size = 0
Wherever you use RMagic with a font, just be sure that the file is not empty...
Fabrice.