Class: Fontisan::Subset::TableStrategy::Post
- Inherits:
-
Object
- Object
- Fontisan::Subset::TableStrategy::Post
- 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
-
.call(context:, tag:, table:) ⇒ String
Binary post bytes for the subset.
Class Method Details
.call(context:, tag:, table:) ⇒ String
Returns 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..drop_names context.font.table_data["post"] end |