added public function to get the suggested size of an attributed string text based on a suggested size