sizedText function for Text.PrettyPrint