[fonttools/fonttools] 1d9551: Fix reading glyph outline when glyphObject is None

0 views
Skip to first unread message

Cosimo Lupo

unread,
Jan 15, 2026, 6:51:42 AM (6 days ago) Jan 15
to fontto...@googlegroups.com
Branch: refs/heads/fix-gliflib-no-glyph-object
Home: https://github.com/fonttools/fonttools
Commit: 1d9551817aa4f324b9c6ea368c83c4243e929567
https://github.com/fonttools/fonttools/commit/1d9551817aa4f324b9c6ea368c83c4243e929567
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.

Fixes #4030



To unsubscribe from these emails, change your notification settings at https://github.com/fonttools/fonttools/settings/notifications
Reply all
Reply to author
Forward
0 new messages