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
Add static method PostProcessor.rename_glyphs #600
Conversation
make sure you do your renaming as first thing after loading a TTFont before loading any other table otherwise you incur in #485 |
Thanks for the tip! If you're happy, I'll squash the two commits. |
sure! LGTM |
hold up. I'm arse clowning here. |
oops merged :) |
@@ -155,7 +155,7 @@ def process_glyph_names(self, useProductionNames=None): | |||
|
|||
if useProductionNames: | |||
logger.info("Renaming glyphs to final production names") | |||
self._rename_glyphs_from_ufo() | |||
self.rename_glyphs(self.otf, self._build_production_names()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to keep this line as it was before
self._rename_glyphs_from_ufo()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep that was my arse clowing. Give me a sec.
I need to rename glyphs in a ttf using a custom mapping. I don't really want to write my own function to do this since we're already doing it in this repo quite nicely.
No offence taken if this gets rejected.