Class: Fontisan::Audit::Checks::KernCheck

Inherits:
Fontisan::Audit::Check show all
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

issue

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

.codeObject



21
22
23
# File 'lib/fontisan/audit/checks/kern_check.rb', line 21

def self.code
  :ot_kern
end