Class: Fontisan::Subset::TableStrategy::Cblc

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

Overview

CBLC strategy: delegate to [ColorBitmapSubsetter] (the same collaborator used by the Cbdt strategy) so both tables stay consistent. The subsetter is built lazily on first access and cached on [SharedState].

Class Method Summary collapse

Class Method Details

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

Returns subset CBLC bytes.

Parameters:

  • context (SubsetContext)
  • tag (String)

    "CBLC"

  • table (Cblc)

    parsed CBLC table (unused)

Returns:

  • (String)

    subset CBLC bytes



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

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