Class: Fontisan::Subset::TableStrategy::Os2

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

Overview

OS/2 strategy: OS/2 currently passes through unchanged. Unicode range pruning is left as future work — the source OS/2 ranges remain valid (they describe the source character coverage, which is a superset of the subset's).

Class Method Summary collapse

Class Method Details

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

Returns source OS/2 bytes verbatim.

Parameters:

  • context (SubsetContext)
  • tag (String)

    "OS/2"

  • table (Os2)

    parsed OS/2 table (unused)

Returns:

  • (String)

    source OS/2 bytes verbatim



15
16
17
# File 'lib/fontisan/subset/table_strategy/os2.rb', line 15

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