Sha256: ca69193de65dbb5191da311907309c75c5e65b7d760b770ff325f777a4280f2a
Contents?: true
Size: 480 Bytes
Versions: 4
Compression:
Stored size: 480 Bytes
Contents
module TTFunk class Directory attr_reader :tables attr_reader :scaler_type def initialize(io, offset = 0) io.seek(offset) @scaler_type, table_count = 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 end end
Version data entries
4 entries across 3 versions & 2 rubygems