lib/ttfunk/table/cff/font_index.rb in ttfunk-1.6.2.1 vs lib/ttfunk/table/cff/font_index.rb in ttfunk-1.7.0

- old
+ new

@@ -10,15 +10,16 @@ super(file, offset, length) @top_dict = top_dict end 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 + entry_cache[index] ||= + begin + start, finish = absolute_offsets_for(index) + TTFunk::Table::Cff::FontDict.new( + top_dict, file, start, (finish - start) + 1 + ) + end end def finalize(new_cff_data, mapping) each { |font_dict| font_dict.finalize(new_cff_data, mapping) } end