Class: Fontisan::Tables::Cff2::Cff2Header

Inherits:
Binary::BaseRecord show all
Defined in:
lib/fontisan/tables/cff2.rb

Overview

CFF2 header structure

Instance Method Summary collapse

Methods inherited from Binary::BaseRecord

#raw_data, read

Instance Method Details

#valid?Boolean

Check if version is valid

Returns:

  • (Boolean)

    True if version is 2.0



50
51
52
# File 'lib/fontisan/tables/cff2.rb', line 50

def valid?
  major_version == 2 && minor_version.zero?
end