Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Omer Bar-or
RE: ImageMagick fonts OK, but RMagick fonts not [ reply ]  
2010-06-21 07:46
Hi, Les! I hope all is well with you.

Changing the font to Helvetica works on my machine (Ubuntu 10.04, RMagick from source, ImageMagick 6.6.2 Q16).

What are the versions of RMagick and ImageMagick you're using on your dev and production machines? And, what operating system are you using on both?

Thanks,
- Omer.

By: Les Nightingill
ImageMagick fonts OK, but RMagick fonts not [ reply ]  
2010-06-19 21:42
Using ImageMagick I can:
convert -font Helvetica label:foobar test.gif
and
convert -font Symbol label:foobar test.gif

and I get the expected results. But when I go to RMagick and try to set the font of an RVG instance with :font=>'Helvetica' it always falls back to the default (Times-Roman).

The RMagick stuff works OK on my dev machine, but not my production server, so it's installation dependent. I confirmed that ImageMagick can find the fonts using the convert command. I've been tearing my hair out for many hours and any suggestions would be gratefully received!

Les

here's my RMagick "stuff":

rvg = Magick::RVG.new(w, h) do |canvas|
canvas.text(0, 0, 'foobar').
styles( :font=>'Helvetica',
:font_size=>14,
:text_anchor=>'end',
:fill=>black)
end