Added HUD text dimension calculations