Class: RuPov::Objects::FiniteSolidPrimitives::Text
- Defined in:
- lib/rupov.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(font, text, thickness, offset = 0) {|_self| ... } ⇒ Text
constructor
A new instance of Text.
Methods inherited from Base
Constructor Details
#initialize(font, text, thickness, offset = 0) {|_self| ... } ⇒ Text
Returns a new instance of Text.
165 166 167 168 169 170 |
# File 'lib/rupov.rb', line 165 def initialize( font, text, thickness, offset = 0 ) super('text') # FIXME these values aren't dynamic self << Methods::MultiValue.new( [Methods::MultiValue.new( [Methods::MultiValue.new( [thickness, offset], "\"#{text}\"")] ,"\"#{font}\"")], 'ttf' ) yield(self) if block_given? and self.class == Text end |