# File lib/ttfunk/table/head.rb, line 24 def self.encode(head, loca) table = head.raw table[8,4] = "\0\0\0\0" # set checksum adjustment to 0 initially table[-4,2] = [loca[:type]].pack("n") # set index_to_loc_format return table end