Class: Fontisan::Tables::VariationCommon::DeltaSetIndexMap

Inherits:
Binary::BaseRecord
  • Object
show all
Defined in:
lib/fontisan/tables/variation_common.rb

Overview

Delta set index mapping

Maps glyph IDs to delta set indices in an ItemVariationStore. Used for efficient lookup of variation data.

Instance Method Summary collapse

Methods inherited from Binary::BaseRecord

#raw_data, read, #valid?

Instance Method Details

#map_dataArray<Integer>

Get map data based on format

Returns:

  • (Array<Integer>)

    Map data



284
285
286
287
288
289
290
291
292
293
294
295
296
297
# File 'lib/fontisan/tables/variation_common.rb', line 284

def map_data
  return @map_data if @map_data

  data = raw_data

  case format
  when 0
    parse_format0(data)
  when 1
    parse_format1(data)
  else
    @map_data = []
  end
end