# errors

exception fontTools.varLib.errors.FoundANone(merger=None, **kwargs)

  one of the values in a list was empty when it shouldn’t have been

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.InconsistentExtensions(merger=None, **kwargs)

  the masters use extension lookups in inconsistent ways

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.InconsistentFormats(merger=None, **kwargs)

  an OpenType subtable (%s) had inconsistent formats between masters

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.InconsistentGlyphOrder(merger=None, **kwargs)

  the glyph order was inconsistent between masters

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.KeysDiffer(merger=None, **kwargs)

  a list of objects had different keys

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.LengthsDiffer(merger=None, **kwargs)

  a list of objects had inconsistent lengths

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.MismatchedTypes(merger=None, **kwargs)

  data had inconsistent types

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.NotANone(merger=None, **kwargs)

  one of the values in a list was not empty when it should have been

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.ShouldBeConstant(merger=None, **kwargs)

  some values were different, but should have been the same

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.UnsupportedFormat(merger=None, **kwargs)

  an OpenType subtable (%s) had a format I didn’t expect

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibCFFDictMergeError(key, value, values)

  Raised when a CFF PrivateDict cannot be merged.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibCFFHintTypeMergeError(hint_type, cmd_index, m_index, default_type, glyph_name)

  Raised when a CFF glyph cannot be merged because of hint type differences.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibCFFMergeError
  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibCFFPointTypeMergeError(point_type, pt_index, m_index, default_type, glyph_name)

  Raised when a CFF glyph cannot be merged because of point type differences.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibError

  Base exception for the varLib module.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibMergeError(merger=None, **kwargs)

  Raised when input data cannot be merged into a variable font.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  property details
  property offender
  property reason
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VarLibValidationError

  Raised when input data is invalid from varLib’s point of view.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception fontTools.varLib.errors.VariationModelError

  Raised when a variation model is faulty.

  add_note()

    Exception.add_note(note) – add a note to the exception

  args
  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.