# `maxp`: Maximum Profile table

The `maxp` table is an OpenType table.

class fontTools.ttLib.tables._m_a_x_p.table__m_a_x_p(tag=None)

  Bases: `DefaultTable`

  Maximum Profile table

  The `maxp` table contains the memory requirements for the data in the font.

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

  dependencies = ['glyf']
  decompile(data, ttFont)
  compile(ttFont)
  recalc(ttFont)

    Recalculate the font bounding box, and most other maxp values except for the TT instructions values. Also recalculate the value of bit 1 of the flags field and the font bounding box of the ‘head’ table.

  testrepr()
  toXML(writer, ttFont)
  fromXML(name, attrs, content, ttFont)
  mergeMap = {'*': <built-in function max>, 'maxFunctionDefs': <function first>, 'maxInstructionDefs': <function first>, 'maxStorage': <function first>, 'numGlyphs': <built-in function sum>, 'tableTag': <function equal>, 'tableVersion': <function equal>}
  prune_pre_subset(font, options)