Class: HexaPDF::Font::Type1::CharacterMetrics
- Inherits:
-
Object
- Object
- HexaPDF::Font::Type1::CharacterMetrics
- Defined in:
- lib/hexapdf/font/type1/character_metrics.rb
Overview
Represents the character metrics for an individual character.
Instance Attribute Summary collapse
-
#bbox ⇒ Object
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.
-
#code ⇒ Object
Decimal value of the default character code (-1 if not encoded).
-
#name ⇒ Object
PostScript language character name.
-
#width ⇒ Object
Character width in x-direction (y-direction is implicitly 0).
Instance Attribute Details
#bbox ⇒ Object
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 |
#code ⇒ Object
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 |
#name ⇒ Object
PostScript language character name.
51 52 53 |
# File 'lib/hexapdf/font/type1/character_metrics.rb', line 51 def name @name end |
#width ⇒ Object
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 |