Class: Fontisan::Audit::Checks::CffTableCheck
- Inherits:
-
Fontisan::Audit::Check
- Object
- Fontisan::Audit::Check
- Fontisan::Audit::Checks::CffTableCheck
- Defined in:
- lib/fontisan/audit/checks/cff_table_check.rb
Overview
Validates CFF/CFF2 table structure: header version, Name INDEX presence (CFF1), Top DICT CharStrings offset, CharStrings count vs maxp.numGlyphs.
Class Method Summary collapse
Methods inherited from Fontisan::Audit::Check
Class Method Details
.call(font) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/fontisan/audit/checks/cff_table_check.rb', line 13 def self.call(font) if font.has_table?("CFF2") validate_cff2(font) elsif font.has_table?("CFF ") validate_cff1(font) else [] end end |
.code ⇒ Object
23 24 25 |
# File 'lib/fontisan/audit/checks/cff_table_check.rb', line 23 def self.code :ot_cff end |