Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, font, glyphOrder=None, convertCubics=True,
cubicConversionError=None, modifiedTime=None):
super(OutlineTTFCompiler, self).__init__(font, glyphOrder,
modifiedTime=modifiedTime)
if convertCubics:
unitsPerEm = getAttrWithFallback(font.info, "unitsPerEm")
if cubicConversionError is None:
from cu2qu.ufo import DEFAULT_MAX_ERR
cubicConversionError = DEFAULT_MAX_ERR
cubicConversionError *= unitsPerEm
self.convertCubics = convertCubics
self.cubicConversionError = cubicConversionError