Add support for max_text_width configuration setting