Forum Replies Created
-
AuthorPosts
-
is autohint enabled for test intall? (see preferences)
if so see topic: blue values required when generating otf with autohinting
He Ben
If you have a python package installed in the current python on your local machine, that package will be accessible in RoboFont.
RoboFont is adding the site-packages of the current python to the sys.path.
So if you have a python package that can read from a serial port it must be possible to access that package in RoboFont
good luck!
He Travis
this is a know issue, once generating fails the print outs send to the output window gets lost….
this will be solved in the next version.
the best workaround is to use a local install of FDK
He Ben
You can use glyph math:
## you will need to have two masters off course ## add the two master glyphs and divide them by 2 ## equal and much safer to multiple by a ½ resultGlyph = (firstGlyph + secondGlyph) * .5
and display the resultGlyph in a vanilla window with a glyphPreview see http://doc.robofont.com/api/mojo/mojo-glyphpreview/
Off course you can do all of this outside RoboFont.
off topic: if you have problems installing RoboFab in FontLab I would redirect you to the RoboFab group, there is already a topic on installing RoboFab in FontLab.
a quick tip if you a really, really want to debug in FL:
redirect the stdout and stderr to a file instead if printing it into FLs output window, cause can FL *can* quit unexpectedly.
import sys f = open(u"/Users/frederik/Desktop/FLlog.txt", "w") savedstdout = sys.stdout savedstderr = sys.stderr sys.stdout = f sys.stderr = f print "hello world" f.close() sys.stdout = savedstdout sys.stderr = savedstderr
This will also work in RoboFont off course!! your scripts will still be exchangeable.
another tip:
visual debugging is in most cases a bad idea…. or you should make a .png, .pdf that you can review afterwards. Use DrawBot or the tinyDrawBot extension (will released when 1.2 is out)thanks for proving it yourself! ;)
as stated in the documentation .update() only tells the UI that your object has changed.
see http://doc.robofont.com/api/robofab-extras/
off topic:
Ive just edited your post and added<pre>bla bla bla</pre>
for none-editors and none-adminsworks!
but it will never make it into RF, sorry :)import time def update(font): document = font.document() for windowController in document.windowControllers(): window = windowController.window() contentView = window.contentView() contentView.displayIfNeeded() f = CurrentFont() g = f["A"] s = time.time() for angle in range(0, 360, 15): g.rotate(angle) update(f) print time.time() - s s = time.time() for angle in range(0, 360, 15): g.rotate(angle) f.update() print time.time() - s
(with a font window open, glyph window open and Space Center open)
For such a simple task it takes one 1 sec more to update.
>>> 1.04617500305
>>> 0.0473890304565
So this is not a good plan unless you realllllyy like coffee or having days with 25 hours or when the sun is turning half speed….
if this is the case you can install a script during startup that add an observer to a
fontChanged
notification and updates all the possible windows and views.mmm, when there are several requests to update a view close after each other, cocoa will ignore previous request and refresh / update the view only once.
but you can force the view to update / refresh:
import robofab.world f = robofab.world.CurrentFont() g = f["A"] collectionView = f.document().getGlyphCollection() view = collectionView.getGlyphCellView() ## get the glyph cell view for n in range(0,54): g.rotate(10) g.update() view.display() ## force the view to redisplay
hope you like the animation :)
solved in the next version :)
thanks for reporting
a know issue :)
Im rather thinking of removing “revert” then fixing this cause it really hard to update/revert added or removed glyphs….
and this can be handled by closing and not saving and reopening the document.there is a myFont.update() :)
that is posting a font is changed notification to all the subscribed objects
see http://doc.robofont.com/api/robofab-extras/
(just seeing that the glyph.update() is not listed in the docs, will add this as well)
no, not possible, yet :)
Ive just added new color prefs:
http://cl.ly/D5FHwill be in the next version
true,
but you first have to click to be able to drag some metrics and when a glyph is clicked a rectangle is been drawn the size of the widththanks for reporting
this should be solved in the next versionDo you remember you copied the contour in RoboFont first? There was a bug in copy paste (you see the starting point jumping) during copying contours. This should be solved in the next version (1.2)
-
AuthorPosts