Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Glyphs custom parameter handler doesn't affect kerning #1053

Open
simoncozens opened this issue Dec 5, 2024 · 1 comment
Open

Rename Glyphs custom parameter handler doesn't affect kerning #1053

simoncozens opened this issue Dec 5, 2024 · 1 comment

Comments

@simoncozens
Copy link
Collaborator

I don't need this in glyphsLib but I discovered in when working on babelfont: The Glyphs "Rename Glyphs" custom parameter also swaps the names of glyphs in the kerning tables as well; we just swap the outlines, meaning the kerning (or lack of kerning) of the old glyph is applied to the new glyph.

@schriftgestalt
Copy link
Collaborator

Glyphs handles this in two ways.

  1. the kerning uses identifiers instead of the glyph name as keys in the kerning dict. That allows renaming the glyphs without the need to update the kerning dict all the time. The identifiers are swapped in when loading the file and replaced by names when saving.
  2. The Rename Glyphs parameter actually replaces the names, not the outlines. And because of the identifiers, the kerning sticks to the glyph even with a new name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants