Class: Fontisan::Audit::Extractors::Identity
- Defined in:
- lib/fontisan/audit/extractors/identity.rb
Overview
Identity fields: the human-readable names a font uses to describe
itself, drawn from the name table (SFNT) or font dictionary
(Type 1).
Returned fields:
family_name, subfamily_name, full_name, postscript_name,
version, font_revision
Instance Method Summary collapse
Instance Method Details
#extract(context) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/fontisan/audit/extractors/identity.rb', line 14 def extract(context) if context.font.is_a?(Type1Font) type1_identity(context.font) else sfnt_identity(context.font) end end |