More text related fixes

Fixes several text bugs mostly related to wrong positioning and incorrect bounds/font size calculation.