Skip to content

Commit

Permalink
Don't remove overlaps from empty or all-component glyphs
Browse files Browse the repository at this point in the history
or else with pyclipper 1.1.0 we get a pyclipper.ClipperException:
See fonttools/pyclipper#14
  • Loading branch information
anthrotype committed Jan 8, 2018
1 parent 6cdf44e commit 27d7b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/fontmake/font_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def add_mti_features_to_master_ufos(self, mti_source, masters):
master.save()

@timer()
def remove_overlaps(self, ufos, glyph_filter=lambda g: True):
def remove_overlaps(self, ufos, glyph_filter=lambda g: len(g)):
"""Remove overlaps in UFOs' glyphs' contours."""
from booleanOperations import union, BooleanOperationsError

Expand Down

0 comments on commit 27d7b4c

Please sign in to comment.