Skip to content

Instantly share code, notes, and snippets.

@arrowtype
Last active September 23, 2023 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arrowtype/c88db0e90e9a64e290e408e0640926c5 to your computer and use it in GitHub Desktop.
Save arrowtype/c88db0e90e9a64e290e408e0640926c5 to your computer and use it in GitHub Desktop.
RoboFont script to remove overlap in selected contours, or else current glyph
# 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()
@arrowtype
Copy link
Author

But actually, you can assign a shortcut to the basic right-click function under RoboFont Preferences > Glyph View > Hot Keys.

@arrowtype
Copy link
Author

Credit to @ryanbugden for the improved code shown above!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment