Class: EideticPDF::PdfK::FontMetrics

Inherits:
Struct
  • Object
show all
Defined in:
lib/epdfk.rb

Overview

GlyphList = File.join(File.dirname(__FILE__), ‘glyphlist.txt’) if File.exist?(GlyphList)

GLYPHS.clear
File.foreach(GlyphList) do |line|
  if line =~ /^(\w+);(\w{4})$/
    codepoint = $2.to_i(16)
    GLYPHS[codepoint] = $1 unless GLYPHS[codepoint]
  end
end

end

Instance Attribute Summary collapse

Instance Attribute Details

#ascentObject

Returns the value of attribute ascent

Returns:

  • (Object)

    the current value of ascent



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def ascent
  @ascent
end

#avg_widthObject

Returns the value of attribute avg_width

Returns:

  • (Object)

    the current value of avg_width



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def avg_width
  @avg_width
end

#b_boxObject

Returns the value of attribute b_box

Returns:

  • (Object)

    the current value of b_box



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def b_box
  @b_box
end

#cap_heightObject

Returns the value of attribute cap_height

Returns:

  • (Object)

    the current value of cap_height



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def cap_height
  @cap_height
end

#descentObject

Returns the value of attribute descent

Returns:

  • (Object)

    the current value of descent



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def descent
  @descent
end

#differencesObject

Returns the value of attribute differences

Returns:

  • (Object)

    the current value of differences



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def differences
  @differences
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def flags
  @flags
end

#italic_angleObject

Returns the value of attribute italic_angle

Returns:

  • (Object)

    the current value of italic_angle



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def italic_angle
  @italic_angle
end

#leadingObject

Returns the value of attribute leading

Returns:

  • (Object)

    the current value of leading



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def leading
  @leading
end

#max_widthObject

Returns the value of attribute max_width

Returns:

  • (Object)

    the current value of max_width



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def max_width
  @max_width
end

#missing_widthObject

Returns the value of attribute missing_width

Returns:

  • (Object)

    the current value of missing_width



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def missing_width
  @missing_width
end

#needs_descriptorObject

Returns the value of attribute needs_descriptor

Returns:

  • (Object)

    the current value of needs_descriptor



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def needs_descriptor
  @needs_descriptor
end

#stem_hObject

Returns the value of attribute stem_h

Returns:

  • (Object)

    the current value of stem_h



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def stem_h
  @stem_h
end

#stem_vObject

Returns the value of attribute stem_v

Returns:

  • (Object)

    the current value of stem_v



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def stem_v
  @stem_v
end

#underline_positionObject

Returns the value of attribute underline_position

Returns:

  • (Object)

    the current value of underline_position



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def underline_position
  @underline_position
end

#underline_thicknessObject

Returns the value of attribute underline_thickness

Returns:

  • (Object)

    the current value of underline_thickness



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def underline_thickness
  @underline_thickness
end

#widthsObject

Returns the value of attribute widths

Returns:

  • (Object)

    the current value of widths



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def widths
  @widths
end

#x_heightObject

Returns the value of attribute x_height

Returns:

  • (Object)

    the current value of x_height



3117
3118
3119
# File 'lib/epdfk.rb', line 3117

def x_height
  @x_height
end