Like Pietj and Milan here, I've been messing with Gruff and running
into the font problem.
Did either of you have any luck figuring out how to do this?
I can get Magick to look at the local font file I point to via:
gc = Magick::Draw.new
gc.font = "#{RAILS_ROOT}/lib/fonts/ChalkboardBold.ttf"
But I can't get Gruff to do it.
It looks like we need to tweak base.rb in Gruff maybe? Here's a
snippet of that file:
# Font used for titles, labels, etc. Works best if you provide the
full
# path to the TTF font file. RMagick must be built with the
Freetype
# libraries for this to work properly.
#
# Tries to find Bitstream Vera (Vera.ttf) in the location
specified by
# ENV['MAGICK_FONT_PATH']. Uses default RMagick font otherwise.
#
# The font= method below fulfills the role of the writer, so we
only need
# a reader here.
attr_reader :font
I'm not up on that lower level attr_reader stuff. Any ideas how to
override it?
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---