Please advise if that feature already their in a plugin that I’m not aware of? or if that can be deployed by a script? Or there is a better solution for that all? I don’t know…
You can have alook at the RMX Tools, but you will need to have already designed a different master on the weight axis, so this is not exactly what you are looking for.
Generally speaking, there is no “magical” way to make stems thinner, although your idea of adding a threshold is an interesting one.
Such weight/width automation is probably under 1% of the work required, which is why there’s still no magical script, afaik. You might get decent results faster by making glyphs out of other glyphs of the same style (/n → /m) rather than from the same glyph of a different style (/n bold → /n thin), because glyphs relate to each other more so than to the other style.
I can argue with that as vectors and points is a simple math that can be solved.
The idea is simple. (if happens an intercept) just stop moving these points that has been intercepted to a certain thresh hold.
There are more complex scripts @mekkablue built. I think he has the magic in his hands?
You can save yourself a bit of work if you uncheck the lock in the offset curve panel and only transform the vertical stems. Horizontal stems will need manual shifting, but there are less of them. And, like others said, rebuilding by copying is faster than thinning everything.
One method I have used is to use the Offset Curve filter with the Interpolate With Background function. First, select your contours and copy them to the background layer (command-J). Apply an offset curve to the background layer. Make sure “Keep Compatible” is checked.
Then, on the regular layer, select only the nodes and handles you want to move—eg. the nodes and handles on each side of the thick stems. Then apply a Interpolate With Background and only the nodes/handles you selected will move.