Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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