errors
- exception fontTools.varLib.errors.VarLibError[source]
Bases:
Exception
Base exception for the varLib module.
- exception fontTools.varLib.errors.VarLibValidationError[source]
Bases:
VarLibError
Raised when input data is invalid from varLib’s point of view.
- exception fontTools.varLib.errors.VarLibMergeError(merger=None, **kwargs)[source]
Bases:
VarLibError
Raised when input data cannot be merged into a variable font.
- property reason
- property offender
- property details
- exception fontTools.varLib.errors.ShouldBeConstant(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
some values were different, but should have been the same
- property details
- exception fontTools.varLib.errors.FoundANone(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
one of the values in a list was empty when it shouldn’t have been
- property offender
- property details
- exception fontTools.varLib.errors.NotANone(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
one of the values in a list was not empty when it should have been
- property offender
- property details
- exception fontTools.varLib.errors.MismatchedTypes(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
data had inconsistent types
- exception fontTools.varLib.errors.LengthsDiffer(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
a list of objects had inconsistent lengths
- exception fontTools.varLib.errors.KeysDiffer(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
a list of objects had different keys
- exception fontTools.varLib.errors.InconsistentGlyphOrder(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
the glyph order was inconsistent between masters
- exception fontTools.varLib.errors.InconsistentExtensions(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
the masters use extension lookups in inconsistent ways
- exception fontTools.varLib.errors.UnsupportedFormat(merger=None, **kwargs)[source]
Bases:
VarLibMergeError
an OpenType subtable (%s) had a format I didn’t expect
- property reason
- exception fontTools.varLib.errors.InconsistentFormats(merger=None, **kwargs)[source]
Bases:
UnsupportedFormat
an OpenType subtable (%s) had inconsistent formats between masters
- exception fontTools.varLib.errors.VarLibCFFMergeError[source]
Bases:
VarLibError
- exception fontTools.varLib.errors.VarLibCFFDictMergeError(key, value, values)[source]
Bases:
VarLibCFFMergeError
Raised when a CFF PrivateDict cannot be merged.
- exception fontTools.varLib.errors.VarLibCFFPointTypeMergeError(point_type, pt_index, m_index, default_type, glyph_name)[source]
Bases:
VarLibCFFMergeError
Raised when a CFF glyph cannot be merged because of point type differences.
- exception fontTools.varLib.errors.VarLibCFFHintTypeMergeError(hint_type, cmd_index, m_index, default_type, glyph_name)[source]
Bases:
VarLibCFFMergeError
Raised when a CFF glyph cannot be merged because of hint type differences.
- exception fontTools.varLib.errors.VariationModelError[source]
Bases:
VarLibError
Raised when a variation model is faulty.