Isn't there already a function to determine this? We have to know this information to calculate the font size elsewhere.