Forum Replies Created
-
AuthorPosts
-
As measurements are a UI related attribute, it is not added to the robofab-like guide object.
However you can change the display of measurements of a guide with:
glyph = CurrentGlyph() guide = glyph.addGuide((100, 100), 90, "my guide") guide.naked().showMeasurements = True
to remove all guides you can also use
glyph.clearGuides()
good luck!
You can drag and drop a glyph selection to change the order. The drag starts after 0.4 of a sec, to prevent accidentally reordering of glyphs.
You can also set a glyph order with a script:
font = CurrentFont() # this is a list of glyph names font.glyphOrder = ["a", "agrave", "b", "c"]
if you changed the glyph order (manually or script) the sorting is disabled.
There is no glyph index in the UFO data, but each glyph has an
glyph.index
returning the index related to the glyph order. Please take note that the glyph order in the final font can be different if you don’t added.notdef
or enabled “Use MacRoman as the start of the glyph order” while compiling.Adding or removing glyphs will always alter the glyph order. It is depending on your settings where new glyphs would be added (at the end or somewhere in a sorted position)
Good luck
What the “Sort Glyphs” checkbox does is performing a sort after the glyph is being added, if unchecked added glyphs will just be appended at the end.
In the next update RF will remember which checkbox you have enabled….
thanks
RoboFont pops up a cubic < -> quad conversion warning whenever a UFO has mixed curves. It measures the amount of cubic segment and quad segments and propose the biggest number as default action to convert the whole font. RoboFont doesn’t allow mixed curves in a single UFO.
The spline conversion option in the preferences are only used while generating a binary font.
converting curve descriptions can be done with a script (please save you font first!)
from lib.tools.bezierTools import curveConverter font = CurrentFont() coreFont = font.naked() for glyph in coreFont: # convert from cubic to quad curveConverter.bezier2quadratic(glyph) # convert from quad to cubic # curveConverter.quadratic2bezier(glyph) coreFont.segmentType = glyph.segmentType print "done"
good luck
Adding a glyph will change the glyph order, cause the new glyph will also be added to the glyph order.
If you have a completely different glyph order, you have the elaborate it a bit more.
thanks!
Hi
there already an official DrawBot extension but it needs a RF beta. The next update is required to get DrawBot inside RoboFont working. TinyDrawBot will be deprecated and removed form the git repo.
The extension will support everything DrawBot has, as it is really the same code :)
But it has some benefits of using all the RoboFont functionality.thanks
g = CurrentGlyph() g.appendAnchor("name", (100, 100))
see also http://www.robofab.org/objects/glyph.html
good luck
November 13, 2013 at 06:32 in reply to: optionally specify locations of afdko, ttfautohint in prefs #5730It is indeed recommended for FDK to be installed on a specific path.
For ttfautohint RoboFont is checking it with
which ttfautohint
terminal command to see if it installed on your local machine. In a normal setup it should be something like/usr/local/bin/ttfautohint
Next to be installed ttfautohint requires an ‘o’ glyph in the font otherwise it just fails to autohint. (seettfautohint -h
)hope this helps.
Stopping a script is more difficult that it sounds like… but it is still on the todo list :)
November 13, 2013 at 06:23 in reply to: Unicode ranges in smart sets need to be decimal, not hex #5728Inside a glyph in UFO the unicode value is stored as decimal number. The search happens on that data. The value you see is just a representation of that value.
Will see what I can do about that….
Hi Mathieu
it doesn’t really matter, just make a system that makes it easy for you to search and find subsets by suffixes.
oh
thanks, will be fixed in the next version
Yes that is possible only you have to tell a glyphview to redraw it self
Use UpdateCurrentGlyphView() ad off course subscribe to the draw notification
See http://doc.robofont.com/api/mojo/mojo-ui/(Will fix the oldstyle notification)
It moved to a more logical place: the display options in the bottom left of your glyph window.
This is a known issue and will be solved in the next update.
The next update will deselect the image when “Lock Image” is enabled.
thanks
-
AuthorPosts