Class: Ucode::Glyphs::Source::Result

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

Overview

One resolved glyph. Carries the SVG payload and enough provenance to debug "where did this glyph come from?" without holding a reference back to the source.

The optional base_font, gid, source_page, source_cell fields carry the renderer's localization data so downstream concerns (Verifier pixel-diff against the source PDF cell, Provenance audit trail) don't need to re-derive it. Sources that don't know this data (e.g. LastResort) leave them nil.

Instance Attribute Summary collapse

Instance Attribute Details

#base_fontObject

Returns the value of attribute base_font

Returns:

  • (Object)

    the current value of base_font



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def base_font
  @base_font
end

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def codepoint
  @codepoint
end

#gidObject

Returns the value of attribute gid

Returns:

  • (Object)

    the current value of gid



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def gid
  @gid
end

#provenanceObject

Returns the value of attribute provenance

Returns:

  • (Object)

    the current value of provenance



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def provenance
  @provenance
end

#source_cellObject

Returns the value of attribute source_cell

Returns:

  • (Object)

    the current value of source_cell



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def source_cell
  @source_cell
end

#source_pageObject

Returns the value of attribute source_page

Returns:

  • (Object)

    the current value of source_page



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def source_page
  @source_page
end

#svgObject

Returns the value of attribute svg

Returns:

  • (Object)

    the current value of svg



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def svg
  @svg
end

#tierObject

Returns the value of attribute tier

Returns:

  • (Object)

    the current value of tier



34
35
36
# File 'lib/ucode/glyphs/source.rb', line 34

def tier
  @tier
end