Class: TTFunk::Table::Cff::FontIndex
- Defined in:
- lib/ttfunk/table/cff/font_index.rb
Overview
CFF Font Dict Index.
Instance Attribute Summary collapse
-
#top_dict ⇒ TTFunk::Table::Cff::TopDict
readonly
Top dict.
Attributes inherited from SubTable
Instance Method Summary collapse
-
#finalize(new_cff_data) ⇒ void
Finalize index.
-
#initialize(top_dict, file, offset, length = nil) ⇒ FontIndex
constructor
A new instance of FontIndex.
Methods inherited from Index
#[], #each, #encode, #items_count
Methods inherited from SubTable
Constructor Details
#initialize(top_dict, file, offset, length = nil) ⇒ FontIndex
Returns a new instance of FontIndex.
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_dict ⇒ TTFunk::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.
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
|