Glyph editor display toggles API

RoboFont Forums Help / General Glyph editor display toggles API

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

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

    bahman
    Participant

    Hi,

    I don’t know if this sounds odd or it has been covered before but I want to make some interface modes for the certain production pipeline I have. Right now to switch to a certain view mode I need to toggle some display options in the glyph editor by using couple of shortcuts on Keyboard. I was wondering is there a method to toggle these options on and off inside the API so I could make a script that toggles couple of them only using one shortcut attached to the script?

    Thanks in advance

    #6216

    frederik
    Keymaster

    he Bahman

    you can use:

    from mojo.UI import setGlyphViewDisplaySettings, getGlyphViewDisplaySettings
    
    settings = getGlyphViewDisplaySettings()
    print settings
    
    # change something, and set it back
    # setGlyphViewDisplaySettings(settings)
    

    good luck

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

You must be logged in to reply to this topic.