Skip to content

Commit

Permalink
Noto puts things straight into "hinted" if autohinting fails
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Apr 6, 2022
1 parent 32587d6 commit 163846c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/gftools/actions/notobuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ def post_process_ttf(self, filename):
hinted = filename.replace("unhinted", "hinted")
try:
autohint(filename, hinted, add_script=True)
self.outputs.add(hinted)
except Exception as e:
self.logger.error("Couldn't autohint %s: %s" % (filename, e))
# We just copy it and pretend.
shutil.copy(filename, hinted)
self.outputs.add(hinted)

def post_process(self, filename):
super().post_process(filename)
Expand Down

0 comments on commit 163846c

Please sign in to comment.