kateliev / TypeRig

Proxy API and Font Development Toolkit for FontLab
https://kateliev.github.io/TypeRig/
BSD 3-Clause "New" or "Revised" License
48 stars 3 forks source link

Proportionally harmonise control handles to master? #90

Open tiroj opened 6 months ago

tiroj commented 6 months ago

I have described this concept in the FL forum: https://forum.fontlab.com/fontlab-8/poportionally-harmonise-control-handles-to-master/

Perhaps this is functionality that could work within TR?

kateliev commented 6 months ago

Absolutely! Will try it in the coming days and keep in touch. Probably over the weekend :) How does this sound to you?

tiroj commented 6 months ago

Great. No rush on my end, but happy to test.

kateliev commented 5 months ago

@tiroj this has essentially being done.

The new functionality has been added to TR Panel and TR Toolbar in the Node section, right among curve optimization tools - between Tunny (T) and Hobby (H) algorithms denoted with little C under a curve image (for Copy).

Screenshot 2024-03-25 182347

Shown in Red in TR panel and Green in TR Toolbar. Also shown in blue and light blue is the Layer selector in the TR Masthead. As all TR tools this will copy the active layer parameters to one or more layers chosen from the TR Masthead. Light blue for all layers, Blue for selected layers.

Please do try it and let me know what you think.

PS: While you test it out... i will try fixing another problem that has been plaguing TR for the last several FontLab builds - the one where curve optimizations (only?... why?!) are not "permanent" due to problems with Undo stack :( As a rule of the thumb... to be 100% sure that the python curve manipulation will "stick" i would run a FL Round nodes action after the manipulation just to be sure... but also take note that if you are not running some FL cutting edge build you would probably not have any issues :)

kateliev commented 5 months ago

@tiroj the undo problems are now fixed as part of ongoing #91. Fixed the curve actions first, so that you could test it out. The rest of TR will be taking some time to refactor.

tiroj commented 5 months ago

Tested (including undo). Works well.