defcon
defcon copied to clipboard
A set of UFO based objects for use in font editing applications.
### Update [fonttools](https://pypi.org/project/fonttools) from **4.34.4** to **4.38.0**. Changelog ### 4.38.0 ``` ---------------------------- - [varLib.instancer] Added support for L4 instancing, i.e. moving the default value of an axis while keeping it...
Before this change, any f.save() would create an empty guidelines array in the fontinfo.plist. Since guidelines are an optinal attribute, I do not think this is necessary.
Use the [Bidi Mirroring](http://www.unicode.org/Public/UNIDATA/BidiMirroring.txt) file instead of my old [openClosedUniGenerator.py](https://github.com/robotools/defcon/blob/master/tools/openClosedUniGenerator.py) for the open/close methods in `font.unicodeData`. Maybe add a new method called `mirroredRelativeForGlyphName`.
When editing glyphs in some fonts, trufont trips over "NotImplementedError: unknown segment type: qcurve". Traceback (most recent call last): File "/home/bert/.virtualenvs/trufont/lib/python3.8/site-packages/trufont/controls/glyphCanvasView.py", line 451, in mouseReleaseEvent self._redirectEvent(event, self._currentTool.mouseReleaseEvent, True) File "/home/bert/.virtualenvs/trufont/lib/python3.8/site-packages/trufont/controls/glyphCanvasView.py",...
This now happens with 0.6.0, but was working before: ```python >>> import defcon [42/78] >>> font = defcon.Font() >>> import copy >>> copy.deepcopy(font) >>> font.save('font060.ufo') >>> copy.deepcopy(font) Traceback (most recent...
The problem was detected while holding notifications of anchor objects. The anchor data didnt change but the notifications was not held cause the key based on the object was already...
According to the documentation: > This object behaves like a dict. ```python >>> isinstance(dcf.layers, defcon.LayerSet) True >>> dcf.layers.keys() Traceback (most recent call last): File "", line 1, in AttributeError: 'LayerSet'...
Almost all objects in defcon participate in the notification system (which is based on the observer pattern). Points are the main exception and it has been a problem for years....
I understand that since glyphs and data inside a ufo are mutable, the idea of hashing is counter-intuitive. But I was wondering if there was a way to make a...
[This line](https://github.com/robotools/defcon/blob/931b496c9d0dd6fa89260dfdd2bfbbf6c85af4a4/Lib/defcon/objects/component.py#L382) triggers an infinite loop through the notification callbacks. I'm afraid I couldn't concentrate enough to understand and provide a fix. I just commented out the line in my...