Makes sense. Thanks so much for your help!
Posts made by ThunderNixon
RE: Observe point changes/movements?
It's working nicely to show that a point moved!
Is there a simple way to know which point moved, once I get the notification? The notification I receive is:
Contour.PointsChanged --> <lib.fontObjects.doodleContour.DoodleContour object at 0x112f24320>
Ideally, I'd want to get to data which was the point index with its parent contour index.
If I print
notification.data, it only gives
object at 0x112f24320mean anything?
Would I have to do something like looping through all points to compare them to a "before" state (possibly in another layer), then assign changed points a unique identifier with generateIdentifierForPoint(point)?
RE: Problem generating variable font
I haven't tried Batch very recently, but to update my last post, I ended up moving my variable font export flow over to FontMake, and I had more success there (in part, because the error messages pointed to specific problems a bit more). However, I kept the static font export flow in Batch, to avoid other unexpected issues in FontMake.
I'll try Batch for a variable font again at some point, and try to update this post if I find more success. Feel free to tweet at me (@thundernixon) if it's been a while and I've neglected to do so.
Observe point changes/movements?
I'm hoping to record the changes made to points in glyphs. My current plan is to make a dictionary of point locations when a glyph is opened (or possibly just accessing the glif data), then comparing point locations when points are moved, and making a dictionary of point movements.
Is there an observer that can send a notification when points are moved?
I'm hoping for something along the lines of
pointMovedInCurrentGlyph, so I could add something like this to my code...
addObserver(self, 'recordPointMovement', "pointMovedInCurrentGlyph") # fake code
...but I'm not finding anything obvious.
Am I missing something? How might I best approach this?
RE: Is there a way to get more specific information about "Updates Found" / external changes notice?
As a very belated response, the above code snippet wasn't really helping me, because (if I'm remembering correctly) RoboFont gets into a sort of "locked" state when this alert appears, so I couldn't figure out how to use the diffing script to peer into both states of the file.
How I did solve the problem was by removing my files from my auto-syncing Dropbox folder, and simply trusting GitHub and hard drive backups. I believe that the syncing of Dropbox was somehow messing up when there were updates to many files at once, as happens in UFOs.
RE: Batch extension failing to generate OTFs from UFOs
Awesome! (Is there any way I might be able to test the beta early, to generate fresh instances before I print materials for my graduation project?)
Batch extension failing to generate OTFs from UFOs
I've generated UFO instances from Superpolator and I'm trying to generate OTFs with the Batch extension.
I've been getting an error off and on. In the past, I've been able to change to a different number of source UFOs, then get generate OTFs. Now, however, I'm getting stuck, and it won't even work on a single instance.
Here's the error message from the Output Window:
****************************** Traceback (most recent call last): File "/Users/stephennixon/Library/Application Support/RoboFont/plugins/Batch.roboFontExt/lib/batchTools.py", line 115, in runTask_ File "/Users/stephennixon/Library/Application Support/RoboFont/plugins/Batch.roboFontExt/lib/batchGenerate/__init__.py", line 145, in run File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/fontParts/base/font.py", line 343, in generate File "lib/fontObjects/fontPartsWrappers.pyc", line 1635, in _generate File "lib/fontObjects/doodleFont.pyc", line 256, in generate File "lib/fontObjects/doodleLayer.pyc", line 296, in generate File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/fontCompiler/compiler.py", line 146, in generateFont File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/fontCompiler/baseCompiler.py", line 333, in compile File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/ufo2fdk/makeotfParts.py", line 111, in compile File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/ufo2fdk/makeotfParts.py", line 282, in setupFile_features File "/Applications/RoboFont3.app/Contents/Resources/lib/python3.6/ufo2fdk/makeotfParts.py", line 809, in extractFeaturesAndTables RuntimeError: dictionary changed size during iteration ******************************
Browsing around Google, it seems like this might be a problem that some code runs into with Python 3.6 when handling a dictionary without making it a list. Therefore, I think it might have to do with the interaction of
ufo2fdkand my feature code?
If you know of anything that might help, please let me know!
Robfont Version 3.0 (built 1803062007)
Batch Version 1.9.8, downloaded fresh from GitHub today (June 26, 2018)
RE: Request: an alert when a short key is already taken by another menu item + a view of all short keys in use
Oh nice! This will be super handy.