Path problems when exporting

Hello!

I’m exporting my WIP font for testing and the paths in the lighter weights are not interpolating (?) correctly. I have 3 masters - Thin, Regular and Black. And all the paths are correct on the masters.

The Light weight after exporting the font:

Any ideas why this is happening?

Thank you so much for your time.

You probably build the glyph with different components? The position and size of components are interpolated independently and that can produce such misalignments. Can you show a screenshot of the ‘m’ and it’s parts?

That’s right — the issue happens on glyphs with components.

Bold Master

Any way to avoid this?

Thanks for your reply!

It is not recommended to combine components and paths like this.

Like what sorry? Could you please explain that? Notice that the problem comes when two components are combined as well.

Thanks

It means that you should avoid making glyphs that are composites of components and some outline parts. Instead you should make your composite glyphs entirely out of components, and then use anchors to connect them, and possibly #entry abd #exit (special) anchors if you need the components to add to the advance width of the composite glyph. If you do that (and have all the stems the same width they will interpolate without errors.

I’ll try that. Thanks!

1 Like

Ok, so I’ve been doing some tests working with components and the #entry and #exit anchors and the problem keeps happening. I have two masters, Light and Black. And in some of the interpolations I have a bit of misalignment.

The glyph is constructed with components and using anchors.

What am I doing wrong? :confused:

Thank you!

You don’t really do something wrong. As I said easier, components (and path) are interpolated independently and that can result in those small offsets.

Can you send me the file? I like to play around with this to better understand your setup and maybe come up with a solution.

Have you set your sub-divisions to something other than one?

Exactly. These rounding errors do happen, and combining shapes that are intended to connect smoothly (or meet at exact points in general) are not encouraged, especially in more complex shapes like italic. There are tricks to avoid it, but are usually more hassle than they’re worth, at least in cases like this.

That seems to work! I’ve increased the subdivision to 5 and the misalignment it’s gone. I don’t undertsand why though :sweat_smile:

Thank you so much!

1 Like

What were the subdivisions before?

It was set to 1. I suppose that’s the default.

But hat coarser grid will bite you in other places. I had a quick look at the file and couldn’t get it to work properly.

I would recommend to use less regular components and more corner components.

1 Like

Yes, I was wondering…what’s the downside of having the subdivision >1 ?

All the design work becomes fine-detailed. If subdivision is 2, you’re doubling the resolution, and you need to be twice as precise as before.

(edit) Also, TrueType does not allow fractional coordinates if I’m not mistaken. If you intend to release your font in TTF outline formats, you should expect the same kind of rounding error.

1 Like

Thank you all so much for your time!

Yes, rounding errors are inevitable this way. Things that need to be smooth are better one shape. What you want to do is better done with corner or cap components.