from fontPens.flattenPen import flattenGlyph d = 10 flattenGlyph(CurrentGlyph(), d)