hello jens, thanks for your help.
in fact your example is what "happened" in my case.
I did some very quick kerning without groups. Later on I replaced the single letters of the pairs with groups through a script. I also wanted to remove the original pair but the zero value was "overwriting" the group value.
so i guess it could work with kerning update etc but the "del" way worked just fine.
There is no difference between just executing a script or an extension. In some cases an extension is easier when the tool or added functionality gets bigger (with embedded modules) and when there are assets (like icons).
Extensions have a info.plist which is handy to share, check versions and fe Mechanic is using that to download the correct packages from github...
Otherwise you can also set start up scripts in the prefs. Those gets executed during start up.
use in your "external" scripts
from robofab.world import CurrentFont
from mojo.roboFont import CurrentFont
Those global variables (CurrentFont, CurrentGlyph, …) are injected in the main script automatically.
I've written a proper vanilla patch which is already in the vanilla repo. This will be in the next update of RoboFont.
It adds addToolBarItem and removeToolbarItem to a vanilla window object, able to manage toolbar items properly.
Try to add a kerning pair with the + button at the bottom. All your kerning groups, starting with a @ will be listed in the combo box
You can drag and drop a glyph selection to change the order. The drag starts after 0.4 of a sec, to prevent accidentally reordering of glyphs.
You can also set a glyph order with a script:
font = CurrentFont()
# this is a list of glyph names
font.glyphOrder = ["a", "agrave", "b", "c"]
if you changed the glyph order (manually or script) the sorting is disabled.
There is no glyph index in the UFO data, but each glyph has an glyph.index returning the index related to the glyph order. Please take note that the glyph order in the final font can be different if you don't added .notdef or enabled "Use MacRoman as the start of the glyph order" while compiling.
Adding or removing glyphs will always alter the glyph order. It is depending on your settings where new glyphs would be added (at the end or somewhere in a sorted position)
there already an official DrawBot extension but it needs a RF beta. The next update is required to get DrawBot inside RoboFont working. TinyDrawBot will be deprecated and removed from the git repo.
The extension will support everything DrawBot has, as it is really the same code
But it has some benefits of using all the RoboFont functionality.
I see, still with spaceCenterDraw it should be possible to get a long way
but did you check https://github.com/typemytype/RoboFontExtensions/tree/master/LayerPreview ?
maybe this is already doing what you are looking for....