class TTFunk::Table::Cff::FontIndex
Attributes
top_dict[R]
Public Class Methods
new(top_dict, file, offset, length = nil)
click to toggle source
Calls superclass method
TTFunk::SubTable::new
# File lib/ttfunk/table/cff/font_index.rb, line 9 def initialize(top_dict, file, offset, length = nil) super(file, offset, length) @top_dict = top_dict end
Public Instance Methods
[](index)
click to toggle source
# File lib/ttfunk/table/cff/font_index.rb, line 14 def [](index) entry_cache[index] ||= begin start, finish = absolute_offsets_for(index) TTFunk::Table::Cff::FontDict.new( top_dict, file, start, (finish - start) + 1 ) end end
finalize(new_cff_data, mapping)
click to toggle source
# File lib/ttfunk/table/cff/font_index.rb, line 24 def finalize(new_cff_data, mapping) each { |font_dict| font_dict.finalize(new_cff_data, mapping) } end