Sha256: 22a14c2156e61ef36cda57486533fa7b4fd2f849b7c7a530f6ad9a0b42d4abcd

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

module TTFunk
  class Table
    class Cff < TTFunk::Table
      # CFF Index conatining Top dict.
      class TopIndex < TTFunk::Table::Cff::Index
        private

        def decode_item(_index, offset, length)
          TTFunk::Table::Cff::TopDict.new(file, offset, length)
        end

        def encode_items(*)
          # Re-encode the top dict
          map(&:encode)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ttfunk-1.8.0 lib/ttfunk/table/cff/top_index.rb