Class: Fontisan::Audit::Extractors::Style
- Defined in:
- lib/fontisan/audit/extractors/style.rb
Overview
Style fields: weight, width, italic/bold flags, Panose family classification.
Returned fields:
weight_class, width_class, italic, bold, panose
Variable-font axis inventory lives in VariationDetail (MECE: this extractor is the OS/2 + head specialist, that one owns everything fvar-derived).
Delegates to StyleExtractor — the existing specialist class that owns the OS/2 + head interpretation rules.
Instance Method Summary collapse
Instance Method Details
#extract(context) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fontisan/audit/extractors/style.rb', line 19 def extract(context) style = StyleExtractor.new(context.font) { weight_class: style.weight_class, width_class: style.width_class, italic: style.italic, bold: style.bold, panose: style.panose, } end |