Fit text into a div with a given height and width with the largest