Class: Ucode::Glyphs::EmbeddedFonts::PositionalMatcher::Position
- Inherits:
-
Struct
- Object
- Struct
- Ucode::Glyphs::EmbeddedFonts::PositionalMatcher::Position
- 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
-
#font_ref ⇒ Object
Returns the value of attribute font_ref.
-
#glyph_id ⇒ Object
Returns the value of attribute glyph_id.
-
#text ⇒ Object
Returns the value of attribute text.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#font_ref ⇒ Object
Returns the value of attribute font_ref
30 31 32 |
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30 def font_ref @font_ref end |
#glyph_id ⇒ Object
Returns the value of attribute glyph_id
30 31 32 |
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30 def glyph_id @glyph_id end |
#text ⇒ Object
Returns the value of attribute text
30 31 32 |
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30 def text @text end |
#x ⇒ Object
Returns the value of attribute x
30 31 32 |
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30 def x @x end |
#y ⇒ Object
Returns the value of attribute y
30 31 32 |
# File 'lib/ucode/glyphs/embedded_fonts/positional_matcher.rb', line 30 def y @y end |