# File lib/ttfunk/directory.rb, line 6
    def initialize(io)
      @scaler_type, table_count, search_range,
        entry_selector, range_shift = io.read(12).unpack("Nn*")
      
      @tables = {}
      table_count.times do
        tag, checksum, offset, length = io.read(16).unpack("a4N*")
        @tables[tag] = { :tag => tag, :checksum => checksum, :offset => offset, :length => length }
      end
    end