Class: NumPlot::Font
- Inherits:
-
Object
- Object
- NumPlot::Font
- Defined in:
- lib/numplot.rb
Overview
The class representing a font in gnuplot.
Example: Font # ariel font, default size Font[“ariel”, 12] # ariel font, the size is 12 point
Class Method Summary (collapse)
-
+ (Font) [](fontname, size = nil)
Create a new Font object.
Instance Method Summary (collapse)
-
- (Font) initialize(fontname, size = nil)
constructor
Create a new Font object.
Constructor Details
- (Font) initialize(fontname, size = nil)
Create a new Font object.
135 136 137 |
# File 'lib/numplot.rb', line 135 def initialize(fontname, size=nil) @s = size ? "#{fontname},#{size}" : fontname end |
Class Method Details
+ (Font) [](fontname, size = nil)
Create a new Font object. See #initialize.
149 |
# File 'lib/numplot.rb', line 149 __yard_ignore_here{ alias [] new } |