Class: Ucode::Glyphs::EmbeddedFonts::TraceGlyph
- Inherits:
-
Struct
- Object
- Struct
- Ucode::Glyphs::EmbeddedFonts::TraceGlyph
- Defined in:
- lib/ucode/glyphs/embedded_fonts/trace_glyph.rb
Overview
Value object for one glyph emitted by mutool trace.
Each <g> element in the trace XML maps to one TraceGlyph:
The font_name is inherited from the enclosing <span>:
Instance Attribute Summary collapse
-
#font_name ⇒ Object
Returns the value of attribute font_name.
-
#gid ⇒ Object
Returns the value of attribute gid.
-
#unicode ⇒ Object
Returns the value of attribute unicode.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Attribute Details
#font_name ⇒ Object
Returns the value of attribute font_name
17 18 19 |
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17 def font_name @font_name end |
#gid ⇒ Object
Returns the value of attribute gid
17 18 19 |
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17 def gid @gid end |
#unicode ⇒ Object
Returns the value of attribute unicode
17 18 19 |
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17 def unicode @unicode end |
#x ⇒ Object
Returns the value of attribute x
17 18 19 |
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17 def x @x end |
#y ⇒ Object
Returns the value of attribute y
17 18 19 |
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17 def y @y end |