Class: Ucode::Glyphs::EmbeddedFonts::PositionalMatcher::Position

Inherits:
Struct
  • Object
show all
Defined in:
lib/ucode/glyphs/embedded_fonts/positional_matcher.rb

Overview

Value object: one positioned glyph with text content. font_ref is the font identifier (Integer obj-id for SVG, String font-name for trace); used only for partitioning by the caller, not by the matcher.

Instance Attribute Summary collapse

Instance Attribute Details

#font_refObject

Returns the value of attribute font_ref

Returns:

  • (Object)

    the current value of font_ref



30
31
32
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30

def font_ref
  @font_ref
end

#glyph_idObject

Returns the value of attribute glyph_id

Returns:

  • (Object)

    the current value of glyph_id



30
31
32
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30

def glyph_id
  @glyph_id
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



30
31
32
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30

def text
  @text
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



30
31
32
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



30
31
32
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30

def y
  @y
end