On-Curve tangent point: state report?

RoboFont Forums Features On-Curve tangent point: state report?

This topic contains 3 replies, has 2 voices, and was last updated by  Mathieu Christe 1 year, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5427

    Mathieu Christe
    Participant

    In some cases (can’t find a way to reproduce it now), I’ve experienced tangent (triangle shape) on-curve points not being updated, which means I need to double-click them to get the correct position of the node.
    Is there a way, a method/function, to check for such points.

    Thanks & best,

    Mathieu

    #5428

    Mathieu Christe
    Participant

    I’ve found a case, when you move a tangent on-curve point, holding Cmd so that the off-curve point doesn’t move.

    #5432

    frederik
    Keymaster

    when holding cmd down on a “smooth” point, tangent points are smooth points, will not move the bcp(s) but only the anchor points across the angle of the bcp(s)

    a small script that “corrects” wrong smooht points by toggling the smooth flag of each point

    # get the current glyph
    g = CurrentGlyph()
    
    # loop over all contours
    for c in g:
        # loop over all points
        for p in c.points:
            # deslect all points
            p.selected = False
            # if the point is an off curve don't do anything
            if p.type == "offCurve":
                continue
            # if the point is smooth
            if p.smooth:
                # set smooth to false
                p.smooth = False
                # select the point
                p.selected = True
    
    
    # get the naked selection object and toggle the smoothness
    g.naked().selection.toggleSmoothness()
    
    # whoehoe, done
    g.update()
    
    

    good luck

    #5433

    Mathieu Christe
    Participant

    Just tested it, no need for luck with your scripts ;-)
    Thanks!

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

You must be logged in to reply to this topic.