Class: Fontisan::Subset::SubsetContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/fontisan/subset/subset_context.rb

Overview

Value object handed to every TableStrategy. Encapsulates the inputs (font, mapping, options) plus the cross-strategy [SharedState] so strategies don't need a back-reference to the TableSubsetter.

Instance Attribute Summary collapse

Instance Attribute Details

#fontSfntFont

Returns:



17
18
# File 'lib/fontisan/subset/subset_context.rb', line 17

SubsetContext = Struct.new(:font, :mapping, :options, :state,
keyword_init: true)

#mappingGlyphMapping

Returns:



17
18
# File 'lib/fontisan/subset/subset_context.rb', line 17

SubsetContext = Struct.new(:font, :mapping, :options, :state,
keyword_init: true)

#optionsOptions

Returns:



17
18
# File 'lib/fontisan/subset/subset_context.rb', line 17

SubsetContext = Struct.new(:font, :mapping, :options, :state,
keyword_init: true)

#stateSharedState

Returns:



17
18
# File 'lib/fontisan/subset/subset_context.rb', line 17

SubsetContext = Struct.new(:font, :mapping, :options, :state,
keyword_init: true)