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 lower-left corner and the x- and y-coordinates of the upper-right corner.



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

def bbox
  @bbox
end

#codeObject

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



42
43
44
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 42

def code
  @code
end

#nameObject

PostScript language character name.



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

def name
  @name
end

#widthObject

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



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

def width
  @width
end