Added proper font size checking