Changing glyph names and updating feature code

Is there any discussion on this or can you advise how best to do this . . .
I want to change glyph suffixes (i.e. .small to .sc). Will Glyphs update all the occurances in Classes and Feature code? Is there an option to do this when I search and replace?

If the code is auto generated (and for the small caps that would be a good idea) you need to update the code. Other than that, you need to search/replace yourself.

There’s no ability to do this but for a range of glyphs?

That looks like someone else’s script or plugin.

For simply renaming glyphs, there’s Edit > Find > Find and Replace (Shift-Command-F).

For something like changing the glyphs from .small suffixes to .sc, I’d select all the glyphs I wanted to change (or all the glyphs), use Find and Replace (Shift-Command-F), entering .small in the Find field and .sc in the Replace field.

That doesn’t help with the OpenType features, of course. But, if you’re moving to Glyphs autogenerated features based on naming, then it may not matter for some features.

The screen grab is FontLab7. At the moment it’s easy and quick to open the .glyphs file in FL7 run the changes and save as .glyphs. I tend to have a mix of auto and manual feature code and classes.

Have you tried tokens? Tutorial is on its way, there is a brief description in the blog post.

Immediate need is solved but I’ll take a look at the tutorial as and when.

I still have this need.
I want to change ‘’ to ‘idotaccent’ and have all the feature code update accordingly.
Just changing the glyph name doesn’t update the feature code. Is there a way to do this in Glyphs as there is in FontLab?

Agreed. It’d be handy, when renaming a glyph, if Glyphs would check if the old name appeared in any feature code, and if so, if it would ask if the name should be changed there too.

It’s on the list for a future version. Meanwhile, I’ll see what I can do with a script.

1 Like