# File lib/ttfunk/table/loca.rb, line 15
      def self.encode(offsets)
        if offsets.any? { |ofs| ofs > 0xFFFF }
          { :type => 1, :table => offsets.pack("N*") }
        else
          { :type => 0, :table => offsets.map { |o| o/2 }.pack("n*") }
        end
      end