Class: Ucode::Glyphs::EmbeddedFonts::TraceGlyph

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#font_nameObject

Returns the value of attribute font_name

Returns:

  • (Object)

    the current value of font_name



17
18
19
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17

def font_name
  @font_name
end

#gidObject

Returns the value of attribute gid

Returns:

  • (Object)

    the current value of gid



17
18
19
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17

def gid
  @gid
end

#unicodeObject

Returns the value of attribute unicode

Returns:

  • (Object)

    the current value of unicode



17
18
19
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17

def unicode
  @unicode
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



17
18
19
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



17
18
19
# File 'lib/ucode/glyphs/embedded_fonts/trace_glyph.rb', line 17

def y
  @y
end