Releases: fonttools/ufoLib2
Releases · fonttools/ufoLib2
v0.16.1
v0.16.0
What's Changed
- Added
tempLib
property to Font, Layer and Glyph (like defcon's) by @anthrotype in #283 - Reverted "Bring guideline invariants up to spec" PR #276
Full Changelog: v0.15.0...v0.16.0
v0.15.0
What's Changed
- raise appropriate error when extras not installed by @anthrotype in #246
- Bring guideline invariants up to spec by @madig in #276
Full Changelog: v0.14.0...v0.15.0
v0.14.0
What's Changed
- Made lazily loaded ufoLib2.Font objects pickleable by automatically un-lazifying them in custom
__getstate__
method (e0f3d6a). - Added optional support for de/serializing all ufoLib2 objects from/to JSON or MessagePack.
You can enable this by installing additional extras: namely,pip install ufoLib[json]
orufoLib2[msgpack]
(or bothufoLib[json,msgpack]
).
This usescattrs
custom converters to unstructure/structure ufoLib2 objects to/from basic serializable data structures.
See docstring inufoLib2.serde::serde
or #230 for examples.
Full Changelog: v0.13.1...v0.14.0
v0.13.1
Hotfix release to support cattrs v1.10.0 and set it as the minimum required version. It changed the name of a "omit if default" parameter that is relevant for our converters.
What's Changed
Full Changelog: v0.13.0...v0.13.1
v0.13.0
What's Changed
- Added
ufoLib2.converters
module which usescattrs
to unstructure/structure ufoLib2 objects to/from raw python objects (dict, list, str, etc.) for (de)serializing them using any compatible formats (e.g. JSON, Yaml, Toml, MsgPack, etc.).
The feature is optional: you need to install ufoLib with the 'converters' extra requirement (i.e.ufoLib[converters]
) which will automatically installcattrs
dependency. Its API for now is experimental and may change in the future.
See thetests/test_converters.py
for examples of how to use it (#181). - ufoLib2.objects.info: added support for the WOFF metadata fields (#19, #181).
Full Changelog: v0.12.1...v0.13.0
v0.12.1
v0.12.0
What's Changed
- Require Python 3.7+ by @madig in #178
- Removed legacy
Font(path)
, useFont.open(path)
instead by @anthrotype in #176
Full Changelog: v0.11.4...v0.12.0