Skip to content

Commit

Permalink
This helps with non-defcon glyph objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
LettError committed Aug 30, 2017
1 parent d1c883a commit 9038a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/fontMath/mathGlyph.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ def _expandImage(image):
transformation = _defaultImageTransformation
color = None
else:
if hasattr(image, "naked"):
image = image.naked()
fileName = image["fileName"]
color = image.get("color")
transformation = tuple([
Expand Down

1 comment on commit 9038a9f

@LettError
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant to post this as a PR. Git. This helps with a problem with getting a FontParts glyph into fontmath.

Please sign in to comment.