Log Message:
-----------
Add regression test for reading glyph with glyphObject=None
Test that pointPen still receives drawing commands when reading a glyph
with glyphObject=None. This is a valid use case for drawing outlines
without populating glyph attributes.
Log Message:
-----------
Add regression test for reading glyph with glyphObject=None
Test that pointPen still receives drawing commands when reading a glyph
with glyphObject=None. This is a valid use case for drawing outlines
without populating glyph attributes.
Author: Cosimo Lupo <cl...@google.com>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M Lib/fontTools/ufoLib/glifLib.py
Log Message:
-----------
Fix reading glyph outline when glyphObject is None
Restore the original placement of `elif glyphObject is None: continue`
after the outline processing block. This allows drawing via pointPen
even when no glyphObject is provided.
The check was incorrectly moved before all element processing in
commit 7f5abe600 (PR #3875), which caused outlines to be silently
skipped when glyphObject=None.