@gferreira said in Preserve empty glyphs when applying defcon sort order through script:
newGlyphOrder = f.naked().unicodeData.sortGlyphNames(f.templateGlyphOrder, sortDescriptors=[dict(type="cannedDesign", ascending=True, allowPseudoUnicode=True)])
f.templateGlyphOrder = newGlyphOrder
Oh, interesting!
Sure enough, changing glyphOrder to templateGlyphOrder fixed my script. It now works just as hoped. :)
Thanks so much for point out that difference to me!