Forum Replies Created
-
AuthorPosts
-
He
Ive written a proper vanilla patch which is already in the vanilla repo. This will be in the next update of RoboFont.
It adds
addToolBarItem
andremoveToolbarItem
to a vanilla window object, able to manage toolbar items properly.see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L631
oh, cool bug, will look into this issue :)
Space center is a multi line view, add “\n” in you input string and a new line is being added
good luck!
those blue line appear according to your settings: see the “outline error” value. If the next point is “outline error”-amount off then the blue line appears. I guess those coordinates are just a bit off :)
good luck
Hi
saving a fontTools object into the same file path is not a good plan. FontTools read the file only when it is required to read them, this is causing the error. Save to a temp file and replace it when you are done. This is safer as you can eliminate possible saving errors.
For now the event “fontDidGenerate” is only send when using the generate from the menu. I didn’t made up my mind if this should be called when a font is generated programmatically, as a script already knows when a font is being generated and the script is able to do some post-processing of the fonts.
thanks
A reconstructing pen I wrote a while ago https://gist.github.com/typemytype/10011318
you can idd wait for RoboHint or add them with fontTools yourself, both are really a good way to spend the night :)
Use
vanilla.dialogs
to get file paths to open or save.
see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/dialogs.pyor when your window controller is a subclass of an defconAppKit
BaseWindowController
useshowGetFolder
,showGetFile
see https://github.com/typesupply/defconAppKit/blob/master/Lib/defconAppKit/windows/baseWindow.pygood luck
RoboFont supports true type splines with 2 off curves (there are some historical reasons)
This means every .ttf opened with RoboFont will have additional points. You can remove them while generating the font cause all those points are labeled.
Can you write true type instructions and hinting programs?
He Jeremie
you could do some post processing when a font is generated and add a kern table to the font whenever a font is being generated.
There is a notification event “fontDidGenerate” you could subscribe to
good luck
source code is the best documentation :)
otherwise use:
from defconAppKit.windows.baseWindow import BaseWindowController from defconAppKit.windows.progressWindow import ProgressWindow help(BaseWindowController) help(ProgressWindow)
cool, thanks
also check out Gustavo’s hTools2 http://hipertipo.org/temp/hTools2/_html/
there are some layers scripts available there
good luck
an alternative option to get docs:
f = CurrentFont() help(f)
(this works for any object)
Cocoa is rather smart in updating views and this is a good example: it prevents the update while there is something else running.
You could force to update the view but maybe a better way is to use the defconAppKit base window and use the a progress from there.
from defconAppKit.windows.baseWindow import BaseWindowController from vanilla import * from time import sleep class Test(BaseWindowController): def __init__(self): self.w = Window((200, 40)) self.w.b = Button((10, 10, -10, 22), "Push", callback=self.buttonCallback) self.w.open() def buttonCallback(self, sender): progress = self.startProgress("Doing it...") for v in ["he", "I'm", "almost", "done"]: progress.update(v) sleep(0.5) progress.close() Test()
good luck
there is a flip-swap-copy layers pop up window, see the preferences hot keys to assign a key to it
see http://doc.robofont.com/documentation/workspace/preferences/glyph-view/
good luck
also see the robofab docs
http://www.robofab.org/objects/glyph.html
and the super handy object map
http://www.robofab.org/objects/model.html
good luck
-
AuthorPosts