Class: Fontisan::Audit::Checks::VariableFontCheck
- Inherits:
-
Fontisan::Audit::Check
- Object
- Fontisan::Audit::Check
- Fontisan::Audit::Checks::VariableFontCheck
- Defined in:
- lib/fontisan/audit/checks/variable_font_check.rb
Overview
Validates variable-font readiness: fvar axis invariants, named instances within ranges, companion-table presence (gvar for TrueType outlines, HVAR for horizontal metrics, STAT for OS style matching). Ports the most commonly-hit fontbakery GF-VF check subset.
Only runs when the font HAS an fvar table — static fonts are skipped (returns empty issues array).
Class Method Summary collapse
Methods inherited from Fontisan::Audit::Check
Class Method Details
.call(font) ⇒ Array<Models::ValidationReport::Issue>
19 20 21 22 23 24 25 26 27 |
# File 'lib/fontisan/audit/checks/variable_font_check.rb', line 19 def self.call(font) return [] unless font.has_table?("fvar") issues = [] issues.concat(validate_axes(font)) issues.concat(validate_instances(font)) issues.concat(validate_companion_tables(font)) issues end |
.code ⇒ Object
29 30 31 |
# File 'lib/fontisan/audit/checks/variable_font_check.rb', line 29 def self.code :variable_font end |