Open outer corners - is there a script to remove them?
mekkablue
(Rainer Erich Scheichelbauer)
August 24, 2017, 11:04am
2
You mean white overlaps that were created with Open Corner?
Yes, there is:
Got it thanks~!
Glyphs.clearLog()
from GlyphsApp import GSPathPen
thisLayer = Font.selectedLayers[0]
layerPaths = [l for l in thisLayer.paths]
thisLayer.paths = []
for eachPath in layerPaths:
pen = GSPathPen.alloc().init()
eachPath.drawInPen_(pen)
eachPath = pen.layer().paths
eachPath = eachPath[0]
thisLayer.addPath_(eachPath)
Johannes
(Johannes)
August 24, 2017, 11:10am
3
hi @Miles_Newlyn @mekkablue
seems to be a hot topic!
You could build that code into a plug-in and run it as a PreFilter at export.
This is currently not possible by script. To do just that. You can run the outline through a GSPathPen. That would ‘remove’ corner components, too.
What do you need it for?
Johannes
(Johannes)
August 24, 2017, 11:15am
5
Hi @GeorgSeifert , excuse my jumping in: I’m interested in the same function. I need this to export UFO’s without the outside corners having turned visible, so they can be worked with in Metrics Machine.
ermin
(Ermin Međedović)
August 25, 2017, 7:27am
6
Count me in. Is it hard to have an option while exporting or saving in UFO format to close just open outside corners?