Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#MenuTitle: Remove External Overlaps
# -*- coding: utf-8 -*-
Removes external overlaps for selected Glyphs
import GlyphsApp
from GlyphsApp import GSPathPen
ListOfSelectedGlyphs = [ l for l in Font.selectedLayers if hasattr(l.parent, 'name')]
for thisLayer in ListOfSelectedGlyphs:
layerPaths = [l for l in thisLayer.paths]
for l in thisLayer.paths:
for eachPath in layerPaths:
pen = GSPathPen.alloc().init()
eachPath = pen.layer().paths
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment