Class: Dvi::Tfm::Char
- Inherits:
-
Object
- Object
- Dvi::Tfm::Char
- Defined in:
- lib/dvi/tfm.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
Returns the width(in design-size units) of the character index number.
-
#height ⇒ Object
readonly
Returns the width(in design-size units) of the character index number.
-
#italic_correction ⇒ Object
readonly
Returns the width(in design-size units) of the character index number.
-
#kerning ⇒ Object
readonly
Returns the value of attribute kerning.
-
#ligature ⇒ Object
readonly
Returns the value of attribute ligature.
-
#width ⇒ Object
readonly
Returns the width(in design-size units) of the character index number.
Instance Method Summary collapse
-
#initialize(width, height, depth, italic_correction, kerning, ligature) ⇒ Char
constructor
A new instance of Char.
Constructor Details
#initialize(width, height, depth, italic_correction, kerning, ligature) ⇒ Char
Returns a new instance of Char.
10 11 12 13 14 15 16 17 |
# File 'lib/dvi/tfm.rb', line 10 def initialize(width, height, depth, italic_correction, kerning, ligature) @width = width @height = height @depth = depth @italic_correction = italic_correction @kerning = kerning @ligature = ligature end |
Instance Attribute Details
#depth ⇒ Object (readonly)
Returns the width(in design-size units) of the character index number.
8 9 10 |
# File 'lib/dvi/tfm.rb', line 8 def depth @depth end |
#height ⇒ Object (readonly)
Returns the width(in design-size units) of the character index number.
8 9 10 |
# File 'lib/dvi/tfm.rb', line 8 def height @height end |
#italic_correction ⇒ Object (readonly)
Returns the width(in design-size units) of the character index number.
8 9 10 |
# File 'lib/dvi/tfm.rb', line 8 def italic_correction @italic_correction end |
#kerning ⇒ Object (readonly)
Returns the value of attribute kerning.
9 10 11 |
# File 'lib/dvi/tfm.rb', line 9 def kerning @kerning end |
#ligature ⇒ Object (readonly)
Returns the value of attribute ligature.
9 10 11 |
# File 'lib/dvi/tfm.rb', line 9 def ligature @ligature end |
#width ⇒ Object (readonly)
Returns the width(in design-size units) of the character index number.
8 9 10 |
# File 'lib/dvi/tfm.rb', line 8 def width @width end |