Closes #2925
Updates #2454
For centering, using bounds is slightly inaccurate as the bounds don't consider left/right-side bearings. Also, using bounds for heights is slightly inaccurate as baselines for texts on the same line would not be the same. Updates #2143