Class: Fontisan::Subset::TableStrategy::PassThrough

Inherits:
Object
  • Object
show all
Defined in:
lib/fontisan/subset/table_strategy/pass_through.rb

Overview

Default fallback for tags that have no dedicated strategy. Returns the source table bytes verbatim — used for tables that don't need any glyph-aware subsetting (e.g. name, OS/2).

Class Method Summary collapse

Class Method Details

.call(context:, tag:, table:) ⇒ String?

Returns source binary bytes for tag, or nil.

Parameters:

  • context (SubsetContext)
  • tag (String)

    table tag

  • table (Object, nil)

    parsed table (unused)

Returns:

  • (String, nil)

    source binary bytes for tag, or nil



14
15
16
# File 'lib/fontisan/subset/table_strategy/pass_through.rb', line 14

def self.call(context:, tag:, table:)
  context.font.table_data[tag]
end