Node alignment

Got a request? Post it here. Please do not post bug reports here.
MikeW
Posts: 354
Joined: Mon May 20, 2013 2:51 pm

Node alignment

Postby MikeW » Sun Nov 27, 2016 4:22 pm

It would be beneficial if when two or more nodes are selected that there be keyboard shortcuts for alignment.

For vertical alignment:

l = left
c = center
r = right

For horizontal alignment:

t = top
m = center
b = bottom

Edited to incorporate BP's suggestion for horizontal center alignment...
Last edited by MikeW on Sun Nov 27, 2016 5:43 pm, edited 1 time in total.

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 6524
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Node alignment

Postby Bhikkhu Pesala » Sun Nov 27, 2016 4:45 pm

I agree that this would be useful. Node alignment is a common task that takes rather too long with the Align Toolbar, and I often make the wrong choice.

Shortcut c is currently used to switch to colour mode, but I see no reason why it cannot serve two functions, depending on the context. Shortcut b = Paint Bucket in Colour mode.

I think m = middle would be better than having two items called center.

Align Middle.png
Align Middle.png (11.8 KiB) Viewed 194 times


The following single-key shortcuts are already in use in the Glyph Edit Window:-
  • N = Change selected points to on curve
  • F = Change selected points to off curve
  • G = Add guideline through two selected nodes, or add orthogonal guidelines at a single selected node
  • A = Add points after selected points
  • O = Toggle Fill Outline
  • H = While pressed down, hides everything except the glyph
  • Q = Select previous contour/point index or composite glyph member. Use SHIFT to add to current selection.
  • W = Select next contour/point index or composite glyph member. Use SHIFT to add to current selection.
  • P = Toggle between point and contour mode
  • C = Toggle between standard and color mode
  • K = Knife (not in color mode)
  • M = Measure
  • B = Paint bucket (only in color mode)
  • / = Fit to Window
My FontsReviews: MainTypeFont CreatorHelpFC10.1 Pro + MT7.0 @ Win10 1703

MikeW
Posts: 354
Joined: Mon May 20, 2013 2:51 pm

Re: Node alignment

Postby MikeW » Sun Nov 27, 2016 5:38 pm

Yep, I read the help about the shortcuts already assigned. And context would take care of the overlap as mentioned.

m would work, thanks.

Bhikkhu Pesala
Top Typographer
Top Typographer
Posts: 6524
Joined: Tue Oct 29, 2002 5:28 am
Location: Seven Kings, London UK
Contact:

Re: Node alignment

Postby Bhikkhu Pesala » Sun Nov 27, 2016 8:50 pm

MikeW wrote:Yep, I read the help about the shortcuts already assigned. And context would take care of the overlap as mentioned.

m would work, thanks.

What if one is editing a colour glyph outline, selects two or more nodes to align them, then presses c or m? How does FontCreator know if the user wants to align the nodes, preview the edited glyph in colour or measure the distance between nodes?
My FontsReviews: MainTypeFont CreatorHelpFC10.1 Pro + MT7.0 @ Win10 1703

PJMiller
Posts: 385
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Node alignment

Postby PJMiller » Mon Nov 28, 2016 12:30 am

Bhikkhu Pesala wrote:
MikeW wrote:Yep, I read the help about the shortcuts already assigned. And context would take care of the overlap as mentioned.

m would work, thanks.

What if one is editing a colour glyph outline, selects two or more nodes to align them, then presses c or m? How does FontCreator know if the user wants to align the nodes, preview the edited glyph in colour or measure the distance between nodes?


I think that the alignment functions are more used and useful than the colour functions so it would make more sense for the alignment functions to get the keystrokes because it wouldn't be that much hassle for the colur functions to be available only from toolbar buttons or menu items.

MikeW
Posts: 354
Joined: Mon May 20, 2013 2:51 pm

Re: Node alignment

Postby MikeW » Mon Nov 28, 2016 12:59 am

Yeah, what he said...

The obvious, fuller, and unfortunately for Erwin more work, solution is to allow customizable keyboard shortcuts. However, the ability to customize keyboard shortcuts allows the best option. Even if there was no interface in the UI for doing so (which is a large part of the making it possible), keyboard shortcuts could be made available in an .ini file any person could edit and FC could read that .ini file and populate the variables at start-up.

While it might seem unprofessional, it's how we all programmed back in the day for various user-configurable features.


Return to “FontCreator - Requests and Enhancements”

Who is online

Users browsing this forum: No registered users and 1 guest