lib/ttfunk/table/maxp.rb in ttfunk-1.4.0 vs lib/ttfunk/table/maxp.rb in ttfunk-1.5.0

- old
+ new

@@ -20,21 +20,21 @@ attr_reader :max_component_depth def self.encode(maxp, mapping) num_glyphs = mapping.length raw = maxp.raw - raw[4,2] = [num_glyphs].pack("n") - return raw + raw[4, 2] = [num_glyphs].pack('n') + raw end private - def parse! - @version, @num_glyphs, @max_points, @max_contours, @max_component_points, - @max_component_contours, @max_zones, @max_twilight_points, @max_storage, - @max_function_defs, @max_instruction_defs, @max_stack_elements, - @max_size_of_instructions, @max_component_elements, @max_component_depth = - read(length, "Nn*") - end + def parse! + @version, @num_glyphs, @max_points, @max_contours, + @max_component_points, @max_component_contours, @max_zones, + @max_twilight_points, @max_storage, @max_function_defs, + @max_instruction_defs, @max_stack_elements, @max_size_of_instructions, + @max_component_elements, @max_component_depth = read(length, 'Nn*') + end end end end