Skip to content

Instantly share code, notes, and snippets.

@connordavenport
Created August 11, 2026 16:19
Show Gist options
  • Select an option

  • Save connordavenport/31e85c3361b7a9a5f0ca244d3ae6e8b2 to your computer and use it in GitHub Desktop.

Select an option

Save connordavenport/31e85c3361b7a9a5f0ca244d3ae6e8b2 to your computer and use it in GitHub Desktop.
from lib.tools.extremePoints import *
g = CurrentGlyph()
with g.undo():
g.rotateBy((-g.font.info.italicAngle))
extremePoints(g.naked(), [c.naked() for c in g.selectedContours], 1, True)
g.rotateBy((g.font.info.italicAngle))
g.round()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment