# `kern`: Kerning table

The `kern` table is an OpenType table.

class fontTools.ttLib.tables._k_e_r_n.table__k_e_r_n(tag=None)

  Bases: `DefaultTable`

  Kerning table

  The `kern` table contains values that contextually adjust the inter-glyph spacing for the glyphs in a `glyf` table.

  Note that similar contextual spacing adjustments can also be stored in the “kern” feature of a `GPOS` table.

  See also https://learn.microsoft.com/en-us/typography/opentype/spec/kern

  getkern(format)
  decompile(data, ttFont)
  compile(ttFont)
  toXML(writer, ttFont)
  fromXML(name, attrs, content, ttFont)
  prune_pre_subset(font, options)
  subset_glyphs(s)

class fontTools.ttLib.tables._k_e_r_n.KernTable_format_0(apple=False)

  Bases: `object`

  version = 0
  format = 0
  decompile(data, ttFont)
  compile(ttFont)
  toXML(writer, ttFont)
  fromXML(name, attrs, content, ttFont)

class fontTools.ttLib.tables._k_e_r_n.KernTable_format_unkown(format)

  Bases: `object`

  decompile(data, ttFont)
  compile(ttFont)
  toXML(writer, ttFont)
  fromXML(name, attrs, content, ttFont)