How to use the psautohint.ufoFont.UFOFontData function in psautohint

To help you get started, we’ve selected a few psautohint 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 adobe-type-tools / afdko / python / afdko / ufotools.py View on Github external
def convertGLIFToBez(ufoFontData, glyphName, doAll=0):
    width, skip = ufoFontData.getOrSkipGlyph(glyphName, doAll)
    if skip:
        return None, width

    glyph = ufoFontData.glyphSet[glyphName]
    round_coords = not ufoFontData.allowDecimalCoords
    bez = psahUFOFontData.get_glyph_bez(glyph, round_coords)
    bezString = "\n".join(bez)
    bezString = "\n".join(["% " + glyphName, "sc", bezString, "ed", ""])

    return bezString, width

psautohint

Python wrapper for Adobe's PostScript autohinter

Apache-2.0
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis

Similar packages