Error: Something went wrong when removing overlap

Hi there, fairly new to type design.

I’m trying to make a few adjustments to an existing font (Jost) and have imported the UFO files. But when I try to export the font files (haven’t made any changes in the file yet), I get an error about removing overlap.

I can see other issues like this, but didn’t come close to a solution.

As it being an already existing font I assume that everything should be correct.

Any tips for the newbie? :slight_smile:

I was about to post the same problem – this font exported perfectly as .otf just over a month ago, now I can only export to .ttf without the message below (same as OP)

Edit: just checked the previous export which was in fact .ttf – the question still stands though, why can’t it export to .otf?

@MartinHelbo the contour direction on your B is wrong.

… or rather, in the Jost UFOs, all contour directions are reversed.

1 Like

If I remember correctly, this is a Glyphs standard, the OpenType spec doesn’t dictate which contour direction is to be used for filled outlines.

This is at least what I remember Georg writing at some point, I might be hallucinating.

Postscript outlines should always be counter clockwise.
I made the decision to store TrueType outlines counter clockwise, too (and reverse them on export) as this makes mixing outlines types possible (it is difficult to tell if a curve is TrueType it postscript when there are only line segments).

Reversing the contour worked. Thank you all.

I have the same error when exporting, but the contours are in order.
The affected glyphs are dollar.bold.smcp, dollar.bold.tosf and dollar.bold.osf in some instances.
Trying to remove the overlaps manually did not work out, adding points to the change of curve direction did neither.

Is there a possibility to export those dollar.bold glyphs properly?

Edit: MacOS 15.6.1, Glyphs 3424

can you send me the file?

I also have files where Remove Overlap is failing in 3425 (and not in 3423)

Please send them.

@ekke.wolf could you send me one of the file that shows this?

Take a look at the handles in the middle segments. Perhaps the are overtaking each other, creating a mini self-overlap.

You can find these with Path Problem Finder, search for ‘cusping handles’.