plugins: common: add support to scale lengths and font sizes per grid un...

...it

Signed-off-by: Simon Busch <morphis@gravedo.de>