Class: TTFunk::Table::Cff::CharstringsIndex

Inherits:
Index show all
Defined in:
lib/ttfunk/table/cff/charstrings_index.rb

Overview

CFF Charstrings Index.

Instance Attribute Summary collapse

Attributes inherited from SubTable

#file, #length, #table_offset

Instance Method Summary collapse

Methods inherited from Index

#[], #each, #encode, #items_count

Methods inherited from SubTable

#eot?, #read

Constructor Details

#initialize(top_dict, file, offset, length = nil) ⇒ CharstringsIndex

Returns a new instance of CharstringsIndex.

Parameters:

  • top_dict (TTFunk::Table:Cff::TopDict)
  • file (TTFunk::File)
  • offset (Integer)
  • length (Integer) (defaults to: nil)


17
18
19
20
# File 'lib/ttfunk/table/cff/charstrings_index.rb', line 17

def initialize(top_dict, *remaining_args)
  super(*remaining_args)
  @top_dict = top_dict
end

Instance Attribute Details

#top_dictTTFunk::Table::Cff::TopDict (readonly)

Top dict.



10
11
12
# File 'lib/ttfunk/table/cff/charstrings_index.rb', line 10

def top_dict
  @top_dict
end