class TTFunk::Table::Cff::Header
CFF Header
.
Attributes
Size of all offsets from beginning of table. @return [Integer]
Size of the header itself. @return [Integer]
CFF table major version. @return [Integer]
CFF table minor version. @return [Integer]
Public Instance Methods
Source
# File lib/ttfunk/table/cff/header.rb, line 34 def encode [major, minor, header_size, absolute_offset_size].pack('C*') end
Encode header.
@return [String]
Source
# File lib/ttfunk/table/cff/header.rb, line 27 def length 4 end
Length of header.
@return [Integer]
Private Instance Methods
Source
# File lib/ttfunk/table/cff/header.rb, line 40 def parse! @major, @minor, @header_size, @absolute_offset_size = read(4, 'C*') end