Parent

Methods

TTFunk::Table::Kern

Attributes

tables[R]
version[R]

Public Class Methods

encode(kerning, mapping) click to toggle source
# File lib/ttfunk/table/kern.rb, line 9
def self.encode(kerning, mapping)
  return nil unless kerning.exists? && kerning.tables.any?
  tables = kerning.tables.map { |table| table.recode(mapping) }.compact
  return nil if tables.empty?

  [0, tables.length, tables.join].pack("nnA*")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.