Method: Gruff::Base#font

Defined in:
lib/gruff/base.rb

#fontObject

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. Uses default RMagick font otherwise.

The font= method below fulfills the role of the writer, so we only need a reader here.



101
102
103
# File 'lib/gruff/base.rb', line 101

def font
  @font
end