Delete point & approximate existing curve

RoboFont Forums Features Delete point & approximate existing curve

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 3 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6304

    nina
    Participant

    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

    #6306

    frederik
    Keymaster

    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!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.