Skip to content

v0.6.0

Compare
Choose a tag to compare
@anthrotype anthrotype released this 21 Feb 18:14
v0.6.0
83ffcf5
  • Support constructing a Font object from a path positional argument, like defcon.Font(path) does (#47).
    This is to ease up projects that wish to support both defcon and ufoLib2.
    If defcon compatibility is not a concern we strongly recommend to use the alternative Font.open @classmethod constructor, as we believe it's more idiomatic and better suits the overall data-classes approach in ufoLib2.
  • Support comparing for equality and deep-copying Font objects even when loaded with lazy=True (#47).
  • Added Glyph.appendContour, similarly for defcon compatibility (#48).
  • Make Glyph.name optional, like in defcon (#51).
  • Added methods to compute bounds and get/set left, right, top and bottom side-bearings (#22, #52, #53).
    This time we could not match defcon API, because our Glyph object does not (by design) hold a back-reference to its parent Layer; thus we cannot use @property getter/setter methods like defcon's leftMargin, etc. but need the caller to pass as a parameter the glyphset from which to resolve component references for computing bounding box of composite glyphs.