Last active
September 23, 2023 19:39
-
-
Save arrowtype/c88db0e90e9a64e290e408e0640926c5 to your computer and use it in GitHub Desktop.
RoboFont script to remove overlap in selected contours, or else current glyph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# menutitle: Remove Overlap in Selected Contours | |
# shortcut: control+command+o | |
g = CurrentGlyph() | |
with g.undo("Remove overlap"): | |
d_glyph = g.asDefcon() | |
sel = d_glyph.selection | |
sel.removeOverlap() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit to @ryanbugden for the improved code shown above!