the upcoming release already has:
from mojo.compile import FDKVersion
print FDKVersion
for version 1.2 and below see http://doc.robofont.com/documentation/welcome-to-robofont/technical-specifications/
Yup, I already had a solution:
f = CurrentFont()
g = CurrentGlyph()
red = (1,0,0,1)
cyan = (0,1,1,1)
for g in f:
if g.mark == cyan:
g.mark = red
g.update()
:)
naming inside a file isn't a good idea: all files have be parsed before a menu can be build
will add some functionality to mojo.UI in the next version
from mojo.UI import getScriptingMenuNamingShortKey, setScriptingMenuNamingShortKey
data = getScriptingMenuNamingShortKey()
data['/path/to/my/python/script.py'] = dict(preferredName="my script name", shortKey="d")
setScriptingMenuNamingShortKey(data)
This will change dramatically when UFO3 gets implemented (don't know when yet...)
RoboFont will follow the spec so components will refer to glyphs from the same layer.
Lots of character sets issues are solved and massively improved in version 1.3:
writing glyph order / character set back into the UFO in the lib public.glyphOrder
and while opening a UFO it checks if there is a glyph order in the lib
rearranging by drag and drop
hope this helps....
hi frederik,
thanks again for this and all the other replies!
I did some minor changes (like printing a better report in the output window).
The latest version can be found here:
http://langustefonts.com/dwld/Componitor1.3.1.zip
thanks, jo
yeah, help is great, didn't know it was available. This will be added in the next version.
thanks
ps: a small workaround:
from defconAppKit.windows.progressWindow import ProgressWindow
import pydoc
## this is actually happening in the built-in 'help'
pydoc.help(ProgressWindow.update)
He
you can add a start up script that will add some root folders to the sys.path
import sys
sys.path.append("my/path/to/my/module")
this module will then be available inside RoboFont
to update the module without restarting:
import myModule
reload(myModule)
good luck