Module: Fontisan::Export::TableSerializer::GlyphSummary

Defined in:
lib/fontisan/export/table_serializer.rb

Overview

Summary builders for mixed-content tables. Each is a callable that receives the typed table and returns a JSON-able Hash.

Class Method Summary collapse

Class Method Details

.call(table) ⇒ Object



115
116
117
118
# File 'lib/fontisan/export/table_serializer.rb', line 115

def self.call(table)
  { type: "glyf", num_glyphs: table.glyphs.length,
    note: "Outline data stored as binary" }
end