Method: Graph#font
- Defined in:
- lib/graph.rb
#font(name) ⇒ Object
Shortcut method to create a new font Attribute instance. You can pass in both the name and an optional font size.
282 283 284 |
# File 'lib/graph.rb', line 282 def font name Attribute.new "fontname = #{name.inspect}" end |