you can use:
from mojo.UI import setGlyphViewDisplaySettings, getGlyphViewDisplaySettings
settings = getGlyphViewDisplaySettings()
# change something, and set it back
I don't fully understand why but here is a script that is changing the size and position of the current window to the previous current window
from AppKit import NSApp
# get all ordered windows
windows = NSApp().orderedWindows()
# get the size of the window
(x, y), (w, h) = windows.frame()
# set the size of the window
windows.setFrame_display_animate_(((x, y), (w, h)), True, False)
it should be living in /usr/local/bin/vfb2ufo
it should also listen to which vfb2ufo in terminal, that is how RoboFont looks for it.
And you probably have to restart RoboFont as the hasVFB2UFO flag is being set during start up
pdf works with the example below.
in drawbot directly it saves as .gif.
for i in range(10):
fill(random(), random(), random())
rect(0, 0, width(), height())
no traceback. it just never shows up on the desktop.
swap will copy the glyph to the destination layer and clear the current layer
flip will copy the glyph to the destination and copy from the destination layer back to the current layer
as you already found out, thanks Jo