|author||James Godfrey-Kittle <email@example.com>||2015-07-17 14:00:15 -0700|
|committer||James Godfrey-Kittle <firstname.lastname@example.org>||2015-07-17 14:00:15 -0700|
Explicitly check anchor objects against None.
This is necessary because of some implementation details in RoboFab; RAnchor objects always evaluate to False in a boolean context. Fixes a bug in which "top" anchors were not being added to composite glyphs, since they are added only when the "parenttop" anchor is present (which was checked for with a statement like "if anchor:").
Diffstat (limited to 'scripts/lib/fontbuild')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/fontbuild/generateGlyph.py b/scripts/lib/fontbuild/generateGlyph.py
index d7e49d8..5f60683 100644
@@ -91,7 +91,7 @@ def copyMarkAnchors(f, g, srcname, width):
anchor_parent_top = anchor
- if anchor_parent_top:
+ if anchor_parent_top is not None: