Class: Dvi::Tfm::Kerning
- Inherits:
-
Object
- Object
- Dvi::Tfm::Kerning
- Defined in:
- lib/dvi/tfm.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#next_char ⇒ Object
readonly
Returns the value of attribute next_char.
Instance Method Summary collapse
-
#initialize(next_char, real_amount) ⇒ Kerning
constructor
A new instance of Kerning.
Constructor Details
#initialize(next_char, real_amount) ⇒ Kerning
Returns a new instance of Kerning.
32 33 34 35 |
# File 'lib/dvi/tfm.rb', line 32 def initialize(next_char, real_amount) @next_char = next_char @amount = real_amount * (2**(-20.0)) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
31 32 33 |
# File 'lib/dvi/tfm.rb', line 31 def amount @amount end |
#next_char ⇒ Object (readonly)
Returns the value of attribute next_char.
31 32 33 |
# File 'lib/dvi/tfm.rb', line 31 def next_char @next_char end |