Class: Dvi::Tfm::Data

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(design_size, font_coding_scheme, font_identifier, char, param) ⇒ Data

Returns a new instance of Data.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/dvi/tfm.rb', line 42

def initialize(design_size, font_coding_scheme, font_identifier, char, param)
  @design_size = design_size
  @font_coding_scheme = font_coding_scheme
  @font_identifier = font_identifier
  @char = char
  @param = param
  @slant = @param[1]
  @space = @param[2]
  @stretch = @param[3]
  @shrink = @param[4]
  @xheight = @param[5]
  @quad = @param[6]
  @extraspace = @param[7]
end

Instance Attribute Details

#charObject (readonly)

Returns the value of attribute char.



40
41
42
# File 'lib/dvi/tfm.rb', line 40

def char
  @char
end

#design_sizeObject (readonly)

Returns the value of attribute design_size.



39
40
41
# File 'lib/dvi/tfm.rb', line 39

def design_size
  @design_size
end

#extraspaceObject (readonly)

Returns the value of attribute extraspace.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def extraspace
  @extraspace
end

#font_coding_schemeObject (readonly)

Returns the value of attribute font_coding_scheme.



39
40
41
# File 'lib/dvi/tfm.rb', line 39

def font_coding_scheme
  @font_coding_scheme
end

#font_identifierObject (readonly)

Returns the value of attribute font_identifier.



39
40
41
# File 'lib/dvi/tfm.rb', line 39

def font_identifier
  @font_identifier
end

#paramObject (readonly)

Returns the value of attribute param.



40
41
42
# File 'lib/dvi/tfm.rb', line 40

def param
  @param
end

#quadObject (readonly)

Returns the value of attribute quad.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def quad
  @quad
end

#shrinkObject (readonly)

Returns the value of attribute shrink.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def shrink
  @shrink
end

#slantObject (readonly)

Returns the value of attribute slant.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def slant
  @slant
end

#spaceObject (readonly)

Returns the value of attribute space.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def space
  @space
end

#strechObject (readonly)

Returns the value of attribute strech.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def strech
  @strech
end

#xheightObject (readonly)

Returns the value of attribute xheight.



41
42
43
# File 'lib/dvi/tfm.rb', line 41

def xheight
  @xheight
end