Class: Dvi::Tfm::Kerning

Inherits:
Object
  • Object
show all
Defined in:
lib/dvi/tfm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



31
32
33
# File 'lib/dvi/tfm.rb', line 31

def amount
  @amount
end

#next_charObject (readonly)

Returns the value of attribute next_char.



31
32
33
# File 'lib/dvi/tfm.rb', line 31

def next_char
  @next_char
end