Class: Fontisan::SvgToGlyf::Path::Command
- Inherits:
-
Struct
- Object
- Struct
- Fontisan::SvgToGlyf::Path::Command
- Defined in:
- lib/fontisan/svg_to_glyf/path/command.rb
Overview
A single parsed SVG path command.
Instance Attribute Summary collapse
-
#absolute ⇒ Boolean
true for uppercase (absolute), false for lowercase (relative).
-
#args ⇒ Array<Float>
the numeric arguments in order.
-
#type ⇒ Symbol
one of :M, :L, :H, :V, :C, :S, :Q, :T, :Z.
Instance Method Summary collapse
Instance Attribute Details
#absolute ⇒ Boolean
true for uppercase (absolute), false for lowercase (relative)
11 12 13 |
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11 def absolute @absolute end |
#args ⇒ Array<Float>
the numeric arguments in order
11 12 13 |
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11 def args @args end |
#type ⇒ Symbol
one of :M, :L, :H, :V, :C, :S, :Q, :T, :Z
11 12 13 |
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11 def type @type end |
Instance Method Details
#relative? ⇒ Boolean
12 13 14 |
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 12 def relative? !absolute end |