Default Font Info settings

RoboFont Forums Features Default Font Info settings

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

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

    jmickel
    Participant

    Is it possible to set default info for copyright / vertical metrics etc?

    Would be nice to have something to start with, instead of copying and pasting each time. Thanks!

    J

    #5175

    frederik
    Keymaster

    That is easy: subscribe to newFontDidOpen and do something with the new font.

    from mojo.events import addObserver
    
    class SetInfo(object):
        
        def __init__(self):
            addObserver(self, "myCallback", "newFontDidOpen")
        
        def myCallback(self, info):
            font = info["font"]
            print font
            font.info.copyright = "This is my font"
        
        
    SetInfo()
    

    and maybe set this script as start up script in the preferences so each time you open RoboFont the observer will be installed.

    good luck

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

You must be logged in to reply to this topic.