Class: Fontisan::Audit::Checks::GlyfTableCheck

Inherits:
Fontisan::Audit::Check show all
Defined in:
lib/fontisan/audit/checks/glyf_table_check.rb

Overview

Validates the 'glyf' table: simple glyph contour integrity and compound glyph reference bounds. Only runs on TrueType fonts.

Constant Summary collapse

MAX_COMPOUND_DEPTH =
16

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/glyf_table_check.rb', line 13

def self.call(font)
  return [] unless font.has_table?("glyf") && font.has_table?("loca")

  issues = []
  issues.concat(validate_glyph_counts(font))
  issues
end

.codeObject



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

def self.code
  :ot_glyf
end