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)[source]

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)[source]
decompile(data, ttFont)[source]
compile(ttFont)[source]
toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
prune_pre_subset(font, options)
subset_glyphs(s)
class fontTools.ttLib.tables._k_e_r_n.KernTable_format_0(apple=False)[source]

Bases: object

version = 0
format = 0
decompile(data, ttFont)[source]
compile(ttFont)[source]
toXML(writer, ttFont)[source]
fromXML(name, attrs, content, ttFont)[source]
class fontTools.ttLib.tables._k_e_r_n.KernTable_format_unkown(format)[source]

Bases: object

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