FontInfoChanged Notification ?

RoboFont Forums Help / General FontInfoChanged Notification ?

This topic contains 2 replies, has 2 voices, and was last updated by  Jeremie 5 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6104

    Jeremie
    Member

    Hi,

    Is there a Tool Notification Method for when the font infos have been changed?
    Would be handy to have.

    thanks

    #6110

    frederik
    Keymaster

    Hi Jeremie

    yes, you can subscribe to the a font.info change with

    These are defcon notification.

    good luck

    class FontInfoObserver:
    
        def __init__(self):
            f = CurrentFont()
    
            f.info.addObserver(self, "infoChanged", "Info.Changed")
        
        def infoChanged(self, notification):
            print "font info changed"
    
    FontInfoObserver()
    
    #6117

    Jeremie
    Member

    Great! Thank you.

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

You must be logged in to reply to this topic.