l = Glyph.layers[f.masters[Master].id]
c = copy.copy(l)
c.removeOverlap()
c.roundCoordinates()
This doesn’t seem to work in all cases. I’m getting coordinates like this after using roundCoordinates() with Grid Spacing and Subdivision set to 1.
d, 396, 156
d, 396, 700
d, 332, 0
d, 421, 0
d, 314, 372
d, 314, 83.003100000000003