Very inefficient way to compute font size