# Fonts in RMagick

**URL:** <https://www.ruby-forum.com/t/fonts-in-rmagick/139159>\
**Category:** Ruby\
**Created:** [May 31, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/fonts-in-rmagick/139159 "2008-05-31T18:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [May 31, 2008, 6:03pm UTC](https://www.ruby-forum.com/t/fonts-in-rmagick/139159/1 "2008-05-31T18:03:51Z")

</div>

Dear all,

I am at a loss installing Rmagick on Ubuntu Gutsy (7.10) - tried both  
compiling from source and the gem –  
I’ve read the documentation FAQ and tried several font configuration  
tools… but when I install Rmagick, I still get loads of errors like:

RMagick: unable to read font  
`/usr/local/lib/ImageMagick-6.4.1/config//usr/local/share/ghostscript/fonts/n019003l.pfb’.

My fonts are actually in /usr/share/type1/gsfonts …

Where in the Makefile of RMagick can I specify this directory ?  
Thank you very much for your help.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [May 31, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/fonts-in-rmagick/139159/2 "2008-05-31T20:00:48Z")

</div>

Axel E. wrote:

> Thank you very much for your help.
> 
> Best regards,
> 
> Axel

This message is actually from ImageMagick, not RMagick. When you run  
ImageMagick’s configuration script, use the --with-gs-font-dir option:

./configure --with-gs-font-dir=/usr/share/type1/gsfonts …other  
options…

See [http://rmagick.rubyforge.org/install-linux.html](http://rmagick.rubyforge.org/install-linux.html) and  
[http://www.imagemagick.org/script/advanced-unix-installation.php](http://www.imagemagick.org/script/advanced-unix-installation.php) for  
more information, and drop me a line at rmagick at rubyforge dot org if  
you need help.

Good luck!
