Class: Fontisan::Subset::TableStrategy::Post

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

Overview

Post strategy: if the drop_names option is set, rewrite as a version 3.0 post table (no glyph names). Otherwise pass through the source post bytes.

Class Method Summary collapse

Class Method Details

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

Returns binary post bytes for the subset.

Parameters:

Returns:

  • (String)

    binary post bytes for the subset



14
15
16
17
18
# File 'lib/fontisan/subset/table_strategy/post.rb', line 14

def self.call(context:, tag:, table:)
  return build_v3(context) if context.options.drop_names

  context.font.table_data["post"]
end