Forum Replies Created
-
AuthorPosts
-
This will be solved in the next update…. hurray!
you can access other layers easily with:
glyph = CurrentGlyph() backgroundLayerGlyph = glyph.getLayer("background")
This returns the glyph object of a specific layer. If the layer doesn’t exist a new layer with the provided name will be created.
see http://doc.robofont.com/api/robofab-extras/
UFO3 will not be embedded in the next release, but likely be in the next-next release (however I don’t want to make any promises)
You can only draw when there is a drawing context. Observe the events “draw” or “drawBackground” to draw additional info of a glyph in the glyph view.
Good luck
April 26, 2013 at 20:01 in reply to: Export failed (invalid DICT array size) — more verbose errors? #5529can you email me the UFO file? or a sample UFO that produce this output error.
thanks
a typo :)
thanks for reporting
will be fixed in the next updateApril 4, 2013 at 08:00 in reply to: MakeOTF problem (Version 1.4 (built 1301142150) – MacOsX 10.8.3) #5509He Roberto
Can you send the UFO? or make an example with the same traceback.
Do you use a local version of FDK or the embedded one? “tx” is part of FDK
thanks
April 2, 2013 at 10:31 in reply to: Disk space issue (Version 1.4 (built 1301142150) – MacOsX 10.8.3) #5506a small tip:
for modifying font data in a batch (multiple fonts at once) it is advised to use
font = OpenFont(path, showUI=False)
so there is no UI build for the font, extremely fast and less memory usagegood luck!
April 2, 2013 at 10:04 in reply to: Disk space issue (Version 1.4 (built 1301142150) – MacOsX 10.8.3) #5505This is a know issue with pyObjc, the cocoa wrapper for building apps on a mac.
March 28, 2013 at 11:10 in reply to: Exporting font issue (Version 1.4 (built 1301142150) – MacOsX 10.8.3) #5502Your font family name has an soft enter char at the end.
good luck
There is the kerning attribute of a font
see http://www.robofab.org/objects/kerning.htmlf = CurrentFont() print f.kerning[('A', 'V')]
If there is group kerning, maybe you should flatten the kerning dict in a temporary dict.
If the kerning is only available in the features, best is to compile the font it and read it back into RoboFont.good luck!
the
ExtensionBundle
us written similarly asNSImage.imageNamed_
from AppKit import * print NSImage.imageNamed_("ExtensionIcon")
when you get a slider callback just request for the
CurrentFont()
instead of keeping a reference of a fontthere is no standard way to set the point selection
you can use fontTools
pointInRect
from fontTools.misc.arrayTools import pointInRect for contour in CurrentGlyph(): for point in contour.points: print pointInRect((point.x, point.y), (minx, miny, maxx, maxy))
take a look at the PolygonSelectionTool https://github.com/typemytype/RoboFontExamples/blob/master/tools/polygonSelectionTool.py
good luck!
will make it available through the
ExtensionBundle
so you could install extensions with “showMessages“ disabled. Installing a bundle will return a succes bool and an info message.Why do you need to update the current font while clicking a window?
Maybe don’t use a floating window, Floating window only become key windows if a proper input is selected, like EditText ….
-
AuthorPosts