added check for minimum font size