Class: HexaPDF::Font::Type1::CharacterMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/hexapdf/font/type1/character_metrics.rb

Overview

Represents the character metrics for an individual character.

Instance Attribute Summary collapse

Instance Attribute Details

#bboxObject

Character bounding box as array of four numbers, specifying the x- and y-coordinates of the bottom-left corner and the x- and y-coordinates of the top-right corner.



55
56
57
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 55

def bbox
  @bbox
end

#codeObject

Decimal value of the default character code (-1 if not encoded).



45
46
47
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 45

def code
  @code
end

#nameObject

PostScript language character name.



51
52
53
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 51

def name
  @name
end

#widthObject

Character width in x-direction (y-direction is implicitly 0).



48
49
50
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 48

def width
  @width
end