Class: Ucode::Glyphs::EmbeddedFonts::Renderer::Result

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

Overview

Result of rendering one codepoint.

source_page + source_cell come from the Catalog's location index when available. Nil when the catalog hasn't traced the PDF (ToUnicode-only path) — downstream concerns treat that as "no positional data; skip cell-based diff".

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_fontObject

Returns the value of attribute base_font

Returns:

  • (Object)

    the current value of base_font



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def base_font
  @base_font
end

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def codepoint
  @codepoint
end

#gidObject

Returns the value of attribute gid

Returns:

  • (Object)

    the current value of gid



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def gid
  @gid
end

#source_cellObject

Returns the value of attribute source_cell

Returns:

  • (Object)

    the current value of source_cell



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def source_cell
  @source_cell
end

#source_pageObject

Returns the value of attribute source_page

Returns:

  • (Object)

    the current value of source_page



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def source_page
  @source_page
end

#svgObject

Returns the value of attribute svg

Returns:

  • (Object)

    the current value of svg



20
21
22
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 20

def svg
  @svg
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 25

def ok?
  !svg.nil?
end