Create scalar font size function