lib/ttfunk/directory.rb in ttfunk-1.7.0 vs lib/ttfunk/directory.rb in ttfunk-1.8.0

- old
+ new

@@ -1,10 +1,16 @@ # frozen_string_literal: true module TTFunk + # SFNT table directory. class Directory + # Table descriptors + # @return [Hash{String => Hash}] attr_reader :tables + + # Scaler type + # @return [Integer] attr_reader :scaler_type def initialize(io, offset = 0) io.seek(offset) @@ -18,10 +24,10 @@ tag, checksum, offset, length = io.read(16).unpack('a4N*') @tables[tag] = { tag: tag, checksum: checksum, offset: offset, - length: length + length: length, } end end end end