Class: Fontisan::Audit::Checks::KernCheck
- Inherits:
-
Fontisan::Audit::Check
- Object
- Fontisan::Audit::Check
- Fontisan::Audit::Checks::KernCheck
- Defined in:
- lib/fontisan/audit/checks/kern_check.rb
Overview
Validates the 'kern' table if present. The kern table is deprecated by the OpenType spec — GPOS is the replacement. Many legacy fonts still ship kern; this check warns about deprecation and validates basic structure.
Class Method Summary collapse
Methods inherited from Fontisan::Audit::Check
Class Method Details
.call(font) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/fontisan/audit/checks/kern_check.rb', line 13 def self.call(font) return [] unless font.has_table?("kern") issues = [deprecation_warning] issues.concat(validate_gpos_presence(font)) issues end |
.code ⇒ Object
21 22 23 |
# File 'lib/fontisan/audit/checks/kern_check.rb', line 21 def self.code :ot_kern end |