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.

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



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

def base_font
  @base_font
end

#codepointObject

Returns the value of attribute codepoint

Returns:

  • (Object)

    the current value of codepoint



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

def codepoint
  @codepoint
end

#gidObject

Returns the value of attribute gid

Returns:

  • (Object)

    the current value of gid



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

def gid
  @gid
end

#svgObject

Returns the value of attribute svg

Returns:

  • (Object)

    the current value of svg



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

def svg
  @svg
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ucode/glyphs/embedded_fonts/renderer.rb', line 18

def ok?
  !svg.nil?
end