# Gruff gives font-related error

**URL:** <https://www.ruby-forum.com/t/gruff-gives-font-related-error/64632>\
**Category:** Rails\
**Created:** [August 15, 2006, 2:11pm UTC](https://www.ruby-forum.com/t/gruff-gives-font-related-error/64632 "2006-08-15T14:11:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gijs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@gijs](https://www.ruby-forum.com/u/gijs)\
**Post date:** [August 15, 2006, 2:11pm UTC](https://www.ruby-forum.com/t/gruff-gives-font-related-error/64632/1 "2006-08-15T14:11:56Z")

</div>

Hello Railslist,

I’m trying to get Gruff running on OSX Tiger (intel) with edge Rails.  
I’ve installed ImageMagick, Rmagick, FreeType and all their  
dependencies, or so I believe. (I’ve compiled them from source mostly,  
following a recent tutorial for Rails and ImageMagick on Intel Macs)

While following the sample on the Gruff downloadpage (the one with the  
fruit), Rails throws a RuntimeError: “Can’t measure text. Are the  
fonts installed? Is the FreeType library installed?”

What do I need to do to fix this error?  
Thanks in advance!

Gijs N.  
Amsterdam, The Netherlands

---

<div class="post-metadata">

**Author:** ![gijs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@gijs](https://www.ruby-forum.com/u/gijs)\
**Post date:** [August 15, 2006, 2:22pm UTC](https://www.ruby-forum.com/t/gruff-gives-font-related-error/64632/2 "2006-08-15T14:22:17Z")

</div>

By the way, the tutorial I mentioned is:

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

But in [http://topfunky.net/svn/plugins/gruff/lib/gruff/base.rb](http://topfunky.net/svn/plugins/gruff/lib/gruff/base.rb), I read  
the following:

# RMagick must be built with the Freetype libraries for this to work

properly.

In this other tutorial  
([http://rmagick.rubyforge.org/install-osx.html](http://rmagick.rubyforge.org/install-osx.html)), the DarwinPorts  
FreeType library is preferred over the X11 version, could this be the  
cause of my error?

Thanks…  
Gijs

---

<div class="post-metadata">

**Author:** ![gijs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/9fc348/32.png) [@gijs](https://www.ruby-forum.com/u/gijs)\
**Post date:** [September 4, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/gruff-gives-font-related-error/64632/3 "2006-09-04T14:45:32Z")

</div>

ok, the solution is to install GhostScript  
(sudo port install ghostscript)
