# File lib/ttfunk/table/hhea.rb, line 19 def self.encode(hhea, hmtx) raw = hhea.raw raw[-2,2] = [hmtx[:number_of_metrics]].pack("n") return raw end