Class: Fontisan::Subset::TableStrategy::Name

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

Overview

Name strategy: name records don't reference glyph IDs, so the full source table is preserved.

Class Method Summary collapse

Class Method Details

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

Returns source name bytes verbatim.

Parameters:

  • context (SubsetContext)
  • tag (String)

    "name"

  • table (Name)

    parsed name table (unused)

Returns:

  • (String)

    source name bytes verbatim



13
14
15
# File 'lib/fontisan/subset/table_strategy/name.rb', line 13

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