Class: Fontisan::Audit::Checks::HheaCheck
- Inherits:
-
Fontisan::Audit::Check
- Object
- Fontisan::Audit::Check
- Fontisan::Audit::Checks::HheaCheck
- Defined in:
- lib/fontisan/audit/checks/hhea_check.rb
Overview
Validates the 'hhea' table per the OpenType spec.
Class Method Summary collapse
Methods inherited from Fontisan::Audit::Check
Class Method Details
.call(font) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fontisan/audit/checks/hhea_check.rb', line 10 def self.call(font) return [] unless font.has_table?("hhea") hhea = font.table("hhea") issues = [] issues.concat(validate_ascent(hhea)) issues.concat(validate_descent(hhea)) issues.concat(validate_line_gap(hhea)) issues.concat(validate_advance_width_max(hhea)) issues end |
.code ⇒ Object
22 23 24 |
# File 'lib/fontisan/audit/checks/hhea_check.rb', line 22 def self.code :ot_hhea end |