Class: Fontisan::Subset::TableStrategy::Cbdt

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

Overview

CBDT strategy: delegate to [ColorBitmapSubsetter], which produces both CBDT and CBLC bytes in a single pass. The Cblc strategy reads from the same collaborator so the two tables stay consistent.

Class Method Summary collapse

Class Method Details

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

Returns subset CBDT bytes.

Parameters:

  • context (SubsetContext)
  • tag (String)

    "CBDT"

  • table (Cbdt)

    parsed CBDT table (unused)

Returns:

  • (String)

    subset CBDT bytes



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

def self.call(context:, tag:, table:)
  color_bitmap_subsetter(context).cbdt_bytes
end