« Gruff Graph 0.0.7 and Rails | Main | Yahoo Group post of the day »

December 12, 2005

Gruff Graph and Rails addendum

In repentance for reinventing work that Geoffrey had already done, I thought I would help people find the Vera fonts, should they need them for their Rails app.

You can find them here.

Pull down the file, unzip and untar it as required, and put them into the appropriate directory in your app.

From your home directory (unix/linux)


# tar -xzvf ttf-bitstream-vera-1.10.tar.gz
# mkdir <railsapp>/artwork
# cp ttf-bitstream-vera-1.10/Vera*.ttf railsapp/artwork/

Now, Geoffrey's example includes a line to include the fonts, but it didn't work for me until I used my complete path:


g.font = File.expand_path('/home/username/ruby/rails/myapp/artwork/Vera.ttf', RAILS_ROOT)

In general, with my linux server, I find that I have to specify the full path with my rails applications. It's a minor inconvenience for now.


Hope this helps!

Posted by jb at December 12, 2005 01:51 PM

Trackback Pings

TrackBack URL for this entry:
http://www.undefined.com/cgi-bin/mt/mt-tb.cgi/402