Delete point & approximate existing curve



  • Hi,

    On deleting a point on a contour via Python, I was wondering if there is any way to access/use RoboFont’s method to keep / approximate the existing curve in a script?

    Thanks,
    Nina


  • admin

    mmm, not directly from the robofab objects

    but you could use the naked object

    g = CurrentGlyph()
    # remove the first segment from the first contour
    g[0].naked().removeSegment(0, preserveCurve=True)
    

    good luck!


Log in to reply
 

Looks like your connection to RoboFont ● Forum was lost, please wait while we try to reconnect.