Class: Dvi::Tfm

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

Defined Under Namespace

Classes: Char, Data, Format, Kerning, Ligature

Class Method Summary collapse

Class Method Details

.read(path) ⇒ Object

Read the TFM file.

path

TFM file path string

Raises:

  • (ArgumentError)


60
61
62
63
# File 'lib/dvi/tfm.rb', line 60

def self.read(path)
  raise ArgumentError, path unless path.kind_of?(String) && File.exist?(path)
  Format.new(File.open(path)).build
end