Class: Fontisan::SvgToGlyf::Path::Command

Inherits:
Struct
  • Object
show all
Defined in:
lib/fontisan/svg_to_glyf/path/command.rb

Overview

A single parsed SVG path command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#absoluteBoolean

true for uppercase (absolute), false for lowercase (relative)

Returns:

  • (Boolean)

    the current value of absolute



11
12
13
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11

def absolute
  @absolute
end

#argsArray<Float>

the numeric arguments in order

Returns:

  • (Array<Float>)

    the current value of args



11
12
13
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11

def args
  @args
end

#typeSymbol

one of :M, :L, :H, :V, :C, :S, :Q, :T, :Z

Returns:

  • (Symbol)

    the current value of type



11
12
13
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 11

def type
  @type
end

Instance Method Details

#relative?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/fontisan/svg_to_glyf/path/command.rb', line 12

def relative?
  !absolute
end