Skip to content

Commit

Permalink
Merge pull request #661 from googlefonts/fix-feature-writers-main
Browse files Browse the repository at this point in the history
featureWriters.__main__ must load font with ufoLib2.Font.open
  • Loading branch information
anthrotype authored Oct 10, 2022
2 parents 9afae22 + 32f83d1 commit 47445aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/ufo2ft/featureWriters/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
try:
import ufoLib2

loader = ufoLib2.Font
loader = ufoLib2.Font.open
except ImportError:
import defcon

Expand Down
2 changes: 1 addition & 1 deletion Lib/ufo2ft/filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def loadFilters(ufo):
logger.exception("Failed to load filter: %s", pformat(filterDict))
continue
filterObj = filterClass(
*filterDict.get("args", []),
include=filterDict.get("include"),
exclude=filterDict.get("exclude"),
pre=filterDict.get("pre", False),
*filterDict.get("args", []),
**filterDict.get("kwargs", {}),
)
if filterObj.pre:
Expand Down

0 comments on commit 47445aa

Please sign in to comment.