2 Variable Fonts in one Glyphs File

Hello,
I have six masters in one Glyphs file. The first three masters are compatible and interpolate together, and the fourth to sixth masters form another compatible interpolation group. However, these two groups are not compatible with each other.

I would like to export two separate variable fonts: one for the Roman version and one for the Stencil version.
How can I do this without getting export errors?

I tried disabling some masters, but it didn’t work.

{
customParameters = (
{
name = "Disable Masters";
value = (
"Stencil Thin",
Stencil,
"Stencil Black"
);
}
);
}

But I still can’t export
Any idea?

What “doesn’t work” exactly?

Exporting.
Every single glyphs cannot interpolated.

Does it work if you split the Glyphs file into two separate files? It’s not every glyph that isn’t compatible, but only some. That probably means that it is another issue. Are you using a lot of open corners?

yes if i split the file in two, I can export variable fonts perfectly

stencil and regular cannot be interpolated. But I like to have them in the same glyphs file because I use “Link Metrics With Master” custom parameter.

Yes, I understand that.

Could you maybe send me the file in a private message so I can have a look?

sure, just sent it to you.

The issue is that there is a space after “Stencil Black” in your master name. This means that it wasn’t removed by the Disable Masters parameter.

Remove the space in your master name, then the parameter will catch it.

Once again this is exactly the reason why I (and some others) have often requested the Dsiable Masters parameter to work with master IDs/checkboxes/popup buttons instead of simple strings.

Ohh.. I can’t believe that this was the issue.
It has to be a checkbox or something similar.

Anyway, thank you Sebastian, I really appreciate this help.