Forum Replies Created
-
AuthorPosts
-
this is already adjusted :)
I will touch the version number so mechanic pics it up
thanks
thanks, will be fixed in the next update
also see the fix in the LayerPreview extension https://github.com/typemytype/RoboFontExtensions/commit/5fce190dd7e16c13ec46cffc87918cb890675a89#diff-e2b70a531b5ae75ad8976588da51966dR46
found it, this will be fixed in the next update…
He Jean François
I can reproduce this bug, and tested this in RF 1.5 (the previous version) and it seems the bug was in there as well…
Looking into it
thanks for reporting
owke, this is idd not working cause a weakref object has to be referenced once or more.
you could force it with:
g = CurrentGlyph() copy = g.copy() # get the internal font and set it hard in the internal glyph object, even it is a copy copy.naked().setParent(g.naked().getParent()) copy.decompose() copy.removeOverlap() print copy.components
The beta support already 10.10
thanks
he
A copy has no parent anymore… so it cannot find the referenced glyph in a component. So decompose will not work.
Maybe the best option is to set the parent in the copied glyph:
source = CurrentGlyph() g = source.copy() g.setParent(source.getParent())
This will be possible in the next update.
it is indeed a lot faster to process some glyph data without an UI (it just doesn’t need to update something….)
thanks
He Roberto,
you can find the RoboFont add ons for robofab API docs here: http://doc.robofont.com/api/robofab-extras/
to get access to your layers data:
# get the current glyph from the current layer glyph = CurrentGlyph() # get a layer layerGlyph = glyph.getLayer("background") # if the layer doesn't exist it will create one
This API is only available in RoboFont. The UFO3 robofab will be able to handle layer data in NonLab
Other wise you can install the RoboFont shell script that allows you to execute script in RoboFont
see the Extension / shell tab in the preferences http://doc.robofont.com/documentation/workspace/preferences/extensions/good luck
He
Ive added those as hot keys to the prefs, will be available in the next update
that is idd handy that one can toggle while measuringthanks
Attachments:
You must be logged in to view attached files.he
you can use
from lib.UI.fontOverView import DoodleGlyphCollectionView
it is using the same arguments as the GlyphCollectionView from defconAppKit as it is a RoboFont optimised subclass.
see https://github.com/typesupply/defconAppKit/blob/master/Lib/defconAppKit/controls/glyphCollectionView.py#L77The GlyphCellView is only the square tiled view. The GlyphCollectionView has both the list option as the glyphCell option.
good luck
there is no such thing as copy to composites but it is easy to write a script that has such a behaviour
an example:
font = CurrentFont() # grap all the components and there references componentMap = font.getReverseComponentMapping() # take half of the x height measurePoint = font.info.xHeight * .5 # loop over it for baseGlyphName, referenceGlyphNames in componentMap.items(): # get the base glyph baseGlyph = font[baseGlyphName] # get the left and right margin based on a specific height left = baseGlyph.getRayLeftMargin(measurePoint) right = baseGlyph.getRayRightMargin(measurePoint) # if there is a left or right margin if left and right: # loop over all the reference glyphs for name in referenceGlyphNames: # get the glyph glyph = font[name] # set the margins based on the same specific height glyph.setRayLeftMargin(measurePoint, left) glyph.setRayRightMargin(measurePoint, right)
good luck!
he
mirror is a combination of translate, scale, translate:)
simple example:
g = CurrentGlyph() g.prepareUndo() bounds = g.box for c in g.components: if bounds: minx, miny, maxx, maxy = bounds w = maxx - minx h = maxy - miny c.scaleTransformation((1, -1), center=(minx, miny)) c.translate((0, h)) g.performUndo()
good luck!
Well I was to quick pushing a new version of the Outliner. The developers and beta version of RoboFont has a warning for a typo in the API. Which is solved in the Outliner, but you don’t have the dev or beta version :)
thanks and good luck!
thanks!
-
AuthorPosts