Forum Replies Created
-
AuthorPosts
-
June 1, 2012 at 15:57 in reply to: some characters not showing in space center after copy pasting #4170
thanks, was able to reproduce it, will be fixed in the next update :)
June 1, 2012 at 13:00 in reply to: some characters not showing in space center after copy pasting #4168is the “radical” glyph already defined by a template glyph?
if so it creates a “radical.copy_1” glyph and pasted the drawings in there (only if you don’t have a selection in the font collection)
this implicates that the unicode value is changed and “√” in Space Center will find your pasted glyph.hope this makes sense
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)
June 1, 2012 at 11:28 in reply to: some characters not showing in space center after copy pasting #4161I cannot reproduce this issue according your description.
By “not default” you mean, they don’t have a unicode value, or they aren’t presented as a template glyph?
Do you have to close the Space Center? or the UFO document?Upon closing and reopening they are there but i am sure there is a better solution?
yeah, this is idd not standard behavior :)
thanks
An issue with ufo2fdk is being fixed. see http://code.typesupply.com/changeset/1154
This will be embedded in the next version of RoboFont
thanks
if you have assets (almost everything which isn’t a python file) store them into a resource folder and connect it in the extension bundle.
see http://doc.robofont.com/extensions/extension-file-spec/to retrieve assets see http://doc.robofont.com/api/mojo/mojo-extensions/
good luck
a progress bar example:
from defconAppKit.windows.progressWindow import ProgressWindow # CurrentFontWindow is only available only in RoboFont 1.3 from mojo.UI import CurrentFontWindow import time progress = ProgressWindow("my progress") time.sleep(2) progress.close() ## attach as sheet to a window progress = ProgressWindow("my progress", parentWindow=CurrentFontWindow().window()) time.sleep(2) progress.update("action....") time.sleep(2) progress.close() ## with tickcount count = 20 progress = ProgressWindow("my progress", tickCount=count) for i in range(count): time.sleep(.1) progress.update("action....%s" %i) progress.close()
That is correct.
For hot keys to scripts in an extension it’s up to the developer of the extension to assign hot keys.
You can assign hot keys to scripts from the scripting folder.
see http://doc.robofont.com/documentation/workspace/preferences/python/
There is no embedded possibility to do spacing by groups.
This is an easy example:
font = CurrentFont() for groupName in font.groups.keys(): # maybe test this before # in this example the group name is "left_O" leftRight, keyGlyph = groupName.split("_") # check if the key glyph is in the font if keyGlyph not in font: continue keyGlyph = font[keyGlyph] # get all the glyphs from the group glyphs = font.groups[groupName] # loop over all the glyphs for destGlyph in glyphs: # check if the destination glyph is in the font if destGlyph not in font: continue # get the destination glyph destGlyph = font[destGlyph] # based on the left or right copy the margins from the key glyph if leftRight == "left": destGlyph.leftMargin = keyGlyph.leftMargin elif leftRight == "right": destGlyph.rightMargin = keyGlyph.rightMargin
if you have groups like:
Alternately, RoboFont could add the root folder of the extension to the python path when it invokes a script from that extension.
I’m not sure how you’re invoking extension scripts in Robofont…mm, I think this will be a mess after a while.
It’s already super easy to add a path tosys.path
:)no, but you will have access to other python scripts and modules if they are on the same level or deeper
(this isn’t a limitation of RoboFont, this is default python behavior if the module isn’t added to the site packages or sys.path)scripting Root - test.py # test can import testFolder and all sub py files - testFolder -- __init__.py -- otherFile.py # otherFile can not import test.py or otherTestFolder - otherTestFolder -- __init__.py
hope this makes sense
He
cool!
Move your scripts that have callbacks from the menu to the root folder.
From there you can import everything inside a RoboFont extension.That will be possible in the next update.
The syntax will be
glyph.getRayRightMargin(position)
(where position is the y value where the glyph is been lasered)Also added
glyph.angledLeftMargin
andglyph.angledRightMargin
(the update is scheduled soon)
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 a module without restarting:
import myModule reload(myModule)
good luck
-
AuthorPosts