fontra icon indicating copy to clipboard operation
fontra copied to clipboard

Add function to rename glyph

Open mrk-z opened this issue 1 year ago • 4 comments

It'd be great to be able to edit the name of a glyph.

mrk-z avatar Oct 23 '23 14:10 mrk-z

Perhaps this is obvious, but I would like to hear your intuitive opinion about the following.

If you rename a glyph, what do you expect to happen to glyphs that use the to-be-renamed glyph as a component?

Should they be:

  • updated
  • not updated
  • there should be a choice when renaming

justvanrossum avatar Oct 26 '23 09:10 justvanrossum

I think a choice would be good to have.

I'm thinking there are two types of renaming:

  • I simply want this glyph to be called another name, or there has been a mistake in the name and I want to correct it. In this case I'd expect the same glyph to be renamed everywhere.
  • There are function changes to the naming (changing a suffix or something) : I want the current glyph to be something else, but other glyphs that are currently using this glyph as a component should still use a glyph with this name, so they should not change, and I would later create a new glyph with the old name.

If possible, I think it'd be good if the software can detect whether the current glyph is being used in another glyph as a component, and present a warning/choice only when it is. If the glyph is not used anywhere else and I see a warning, I'd be confused or worried.

mrk-z avatar Oct 26 '23 14:10 mrk-z

Would the second use case perhaps be better served with a "duplicate glyph" function?

justvanrossum avatar Oct 26 '23 15:10 justvanrossum

Yes that would work too.

mrk-z avatar Oct 27 '23 08:10 mrk-z