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

Glyph renaming - disable auto-bleed in all contexts #532

Merged
merged 4 commits into from Apr 12, 2013
Merged

Glyph renaming - disable auto-bleed in all contexts #532

merged 4 commits into from Apr 12, 2013

Conversation

ghost
Copy link

@ghost ghost commented Apr 11, 2013

This is my suggestion, as an expansion of @JoesCat's #524. I have fixed the minor issue with the function prototype, but more importantly, disabled auto-rename in all contexts; not only Python scripting but also native scripting and the GUI. This brings it into line with my own preferences and issue #523. The code to do the auto-renaming still exists, but with this patch it will not execute; I'd support a future feature request to make it available as a separate command distinct from regular rename.

I've tested this to the extent possible and am reasonably sure it won't create inconsistent substitution tables; that bit of existing code turns out to be better-designed than I had feared.

khaledhosny and others added 4 commits April 8, 2013 15:46
SFGlyphRenameFixup() is too smart that it will, when renaming “f”, it
will search for glyphs that has an “f” component, e.g. “f_f” or “f_f_i”
and rename the component as well. The desirability of this is
questionable, but for now I added a boolean flag to control this and
disable it in Python while keeping the GUI behaviour unchanged.

Commits / fc92548, see issue 523 "Remove the auto glyph renaming feature."
These things can get forgotten later - better highlight a note.
@ghost ghost mentioned this pull request Apr 11, 2013
@davelab6
Copy link
Member

I hope @JoesCat can review and merge this :D Really great to see this collaboration, especially with Khaled :)

@JoesCat
Copy link
Contributor

JoesCat commented Apr 12, 2013

Tried your sample code for before:
foo
foo.a
foo.b
foo
bar
bar.a
bar.b
and then after:
foo
foo.a
foo.b
foo
bar <--modified_here_only
foo.a
foo.b

Also tried SelectNone() just before Select("foo") or Select(0), as well as SelectAll() afterwards.

I have not yet dug-in deeper into issues you have mentioned such as substitution tables or other features, so that might come to bite-us later on, but this seems to be working okay for what is shown at this point.

Thanks for catching the missing splinefont.h file - I don't work in my master, but only in a copy, and missed copying that file earlier.

Looks ready to merge

JoesCat added a commit that referenced this pull request Apr 12, 2013
Glyph renaming - disable auto-bleed in all contexts
@JoesCat JoesCat merged commit a51c071 into fontforge:master Apr 12, 2013
@ghost ghost deleted the glyph_renaming branch April 12, 2013 15:55
@ghost ghost mentioned this pull request Apr 12, 2013
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

Successfully merging this pull request may close these issues.

None yet

3 participants