Ejemplo n.º 1
0
def registerVfb2ufo(location):
    if ".vfb" in supportedFormats:
        supportedFormats.remove(".vfb")
    _setVfb2ufoLocation(location)
    if haveVfb2ufo():
        supportedFormats.append(".vfb")
Ejemplo n.º 2
0
def registerVfb2ufo(location):
    if ".vfb" in supportedFormats:
        supportedFormats.remove(".vfb")
    _setVfb2ufoLocation(location)
    if haveVfb2ufo():
        supportedFormats.append(".vfb")
Ejemplo n.º 3
0
             destination,
             doGlyphs=doGlyphs,
             doInfo=doInfo,
             doKerning=doKerning,
             doGroups=doGroups,
             doFeatures=doFeatures,
             doLib=doLib,
             customFunctions=customFunctions.get(format, []))
    except:
        import sys
        import traceback
        traceback.print_exc(file=sys.stdout)
        raise ExtractorError("There was an error reading the %s file." %
                             format)


# ---------------------
# Specific Format Tools
# ---------------------

if haveVfb2ufo():
    supportedFormats.append(".vfb")


def registerVfb2ufo(location):
    if ".vfb" in supportedFormats:
        supportedFormats.remove(".vfb")
    _setVfb2ufoLocation(location)
    if haveVfb2ufo():
        supportedFormats.append(".vfb")
Ejemplo n.º 4
0
    # callers don't need to worry about lower level
    # (fontTools, woffTools, etc.) errors. if an error
    # occurs, print the traceback for debugging and
    # raise an ExtractorError.
    try:
        func(pathOrFile, destination,
            doGlyphs=doGlyphs, doInfo=doInfo,
            doKerning=doKerning, doGroups=doGroups,
            doFeatures=doFeatures, doLib=doLib,
            customFunctions=customFunctions.get(format, [])
        )
    except:
        import sys
        import traceback
        traceback.print_exc(file=sys.stdout)
        raise ExtractorError("There was an error reading the %s file." % format)

# ---------------------
# Specific Format Tools
# ---------------------

if haveVfb2ufo():
    supportedFormats.append(".vfb")

def registerVfb2ufo(location):
    if ".vfb" in supportedFormats:
        supportedFormats.remove(".vfb")
    _setVfb2ufoLocation(location)
    if haveVfb2ufo():
        supportedFormats.append(".vfb")