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

Add an option to change the first segment (node) #174

Open
eliheuer opened this issue Oct 29, 2020 · 3 comments
Open

Add an option to change the first segment (node) #174

eliheuer opened this issue Oct 29, 2020 · 3 comments

Comments

@eliheuer
Copy link
Collaborator

This option could just be something in the paths menu with a label like "make selected node first".

This would be useful for a variety of reasons, but mainly it is important for variable fonts. If two paths have the same point structure, but different first segments, the interpolated in-between shapes will be twisted and unrecognizable.

Maybe I could figure out a PR for this using src/draw.rs/draw_direction_indicator as a starting point.

@raphlinus
Copy link
Collaborator

This is a good feature to have. One question to resolve is how it's invoked. Glyphs seems to surface this primarily through a context menu, which is possible but I think involves some more hit-testing logic to figure out if the right-click is on a point. An easier possibility is "make selected point first," but this is only going to be meaningful when there is one point selected. (Or, more generally, one point per contour)

@cmyr
Copy link
Member

cmyr commented Oct 30, 2020

We need to do better context menu stuff anyway, so this could be a good excuse for that.

@eliheuer
Copy link
Collaborator Author

My first instinct is to select a node and right-click on it looking for a context menu. It would be nice if “reverse contours” from the Paths menu was in the same section of the context menu as well.

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

3 participants