Class: Dvi::Tfm::Char

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#depthObject (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

#heightObject (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_correctionObject (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

#kerningObject (readonly)

Returns the value of attribute kerning.



9
10
11
# File 'lib/dvi/tfm.rb', line 9

def kerning
  @kerning
end

#ligatureObject (readonly)

Returns the value of attribute ligature.



9
10
11
# File 'lib/dvi/tfm.rb', line 9

def ligature
  @ligature
end

#widthObject (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