How to use the cu2qu.ufo.DEFAULT_MAX_ERR function in cu2qu

To help you get started, we’ve selected a few cu2qu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googlefonts / ufo2ft / Lib / ufo2ft / outlineCompiler.py View on Github external
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

cu2qu

Cubic-to-quadratic bezier curve conversion

MIT
Latest version published 2 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages