[1.6] Font to Font comparison not working correctly

RoboFont Forums Bugs [1.6] Font to Font comparison not working correctly

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

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

    Jens K.
    Participant

    I think the cmp operator on two fonts is not working correctly … This works:

    sf = CurrentFont()
    print "Current:", sf
    
    for f in AllFonts():
        if f == sf:
            print "equal:", f
        else:
            print "not equal:", f
    

    result:

    Current: Font Light
    equal: Font Light
    not equal: Font Bold
    not equal: Font Book
    

    but this gives the opposite of the expected result:

    sf = CurrentFont()
    print "Current:", sf
    
    for f in AllFonts():
        if f != sf:
            print "not equal:", f
        else:
            print "equal:", f
    

    result:

    Current: Font Light
    not equal: Font Light
    equal: Font Bold
    equal: Font Book
    
    #6028

    frederik
    Keymaster

    He Jens

    This was already posted on the beta list and solved in the developers beta.
    An update will be released soon…

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

You must be logged in to reply to this topic.