Class: TTFunk::Table::Cff::FontIndex

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

Overview

CFF Font Dict 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) ⇒ FontIndex

Returns a new instance of FontIndex.

Parameters:

  • top_dict (TTFunk::Table:Cff::TopDict)
  • file (TTFunk::File)
  • offset (Integer)
  • length (Integer) (defaults to: nil)
Source Code
lib/ttfunk/table/cff/font_index.rb, line 16
16
def initialize(top_dict, file, offset, length = nil)
17
  super(file, offset, length)
18
  @top_dict = top_dict
19
end

Instance Attribute Details

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

Top dict.

Source Code
lib/ttfunk/table/cff/font_index.rb, line 10
10
def top_dict
11
  @top_dict
12
end

Instance Method Details

#finalize(new_cff_data) ⇒ void

This method returns an undefined value.

Finalize index.

Parameters:

Source Code
lib/ttfunk/table/cff/font_index.rb, line 25
25
def finalize(new_cff_data)
26
  each { |font_dict| font_dict.finalize(new_cff_data) }
27
end