Fixed text bounds calculation