Class: Fontisan::Validators::FontBookValidator

Inherits:
BasicValidator show all
Defined in:
lib/fontisan/validators/font_book_validator.rb

Overview

FontBookValidator provides macOS Font Book installation compatibility checks

This validator extends BasicValidator with additional checks needed for fonts to be successfully installed and used in macOS Font Book. It ensures proper encoding combinations, OS/2 metrics, and other macOS-specific requirements.

The validator inherits all 8 checks from BasicValidator and adds 12 new checks focusing on:

  • Name table encoding combinations (Windows and Mac)

  • OS/2 table metrics and metadata

  • Head table bounding box

  • Hhea table metrics

  • Post table metadata

  • Cmap subtables

Examples:

Using FontBookValidator

validator = FontBookValidator.new
report = validator.validate(font)
puts "Font is Font Book compatible" if report.valid?

Direct Known Subclasses

OpenTypeValidator

Method Summary

Methods inherited from Validator

#initialize, #validate

Constructor Details

This class inherits a constructor from Fontisan::Validators::Validator