You have to do the calculations yourself. Check out the FontMetrics class.