Custom glyphOrder is not respected

I set the glyph order via custom parameter, but Glyphs still puts space as the second glyph in the font. Is there a reason for this? When I set a custom order, I do so because I mean it :wink:

In:

{
customParameters = (
{
name = glyphOrder;
value = (
.notdef,
A,
Aacute,
Acircumflex
);
}
);
}

Out:

    <GlyphID id="0" name=".notdef"/>
    <GlyphID id="1" name="space"/>
    <GlyphID id="2" name="A"/>
    <GlyphID id="3" name="Aacute"/>
    <GlyphID id="4" name="Acircumflex"/>

The only way to get the glyph order I want (for compatibility with a previous version of the font) is to fix it manually in a ttx file.

Glyphs reorders .notdef and space by default, regardless of the glyphOrder parameter. But you can prevent that by adding a “TrueType Keep GlyphOrder” parameter (in the font or instances).

I love a good secret custom parameter :wink:

But unfortunately, it doesn’t solve the problem, as the fonts are not TrueType, but CFF…

I added a “Keep GlyphOrder” parameter that covers both, CFF and TT export. Will be in 3322.

1 Like