class TTFunk::Table::Cff::Header

Attributes

absolute_offset_size[R]

size of all offsets from beginning of table

header_size[R]

size of the header itself

major[R]

cff format version numbers

minor[R]

Public Instance Methods

encode() click to toggle source
# File lib/ttfunk/table/cff/header.rb, line 21
def encode
  [major, minor, header_size, absolute_offset_size].pack('C*')
end
length() click to toggle source
# File lib/ttfunk/table/cff/header.rb, line 17
def length
  4
end

Private Instance Methods

parse!() click to toggle source
# File lib/ttfunk/table/cff/header.rb, line 27
def parse!
  @major, @minor, @header_size, @absolute_offset_size = read(4, 'C*')
end