Is there a rectangle corner filter/script?

I was looking for something like the Round Corners filter-but with a rectangle line.
I could use corner component but It’s kind of hard to change the corner size by ratio all the time.

What do you mean by “change the corner size by ratio”. Maybe the size of the corner is wrong. if you make the diagonal in the _corner glyphs 100/100 units, the percent scale would give you font units. but maybe add a few more _corner glyphs that each have the right size?

Thanks Georg, that thing I didn’t think of. I’ll try that.