python-pptx TextFrame.fit_text() on Linux: OSError 'unsupported operating system' unless you pass font_file=<path to .ttf>
Call tf.fit_text(font_file='/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', max_size=24) on Linux, because fit_text() with no font_file raises OSError: 'unsupported operating system' (same with max_size=24 only). Tested with python-pptx 1.0.2 and Pillow, sys.platform 'linux' (WSL2), on the body placeholder of layout 1 holding 40 repeated sentences. A nonexistent font_file raises OSError: 'cannot open resource'. With DejaVuSans.ttf it succeeded and set the run font size to 15.0 pt, set auto_size to MSO_AUTO_SIZE.NONE and word_wrap to True. A fresh placeholder's text_frame has word_wrap None, auto_size None and an empty <a:bodyPr/>, and assigning long text left the shape size unchanged at 8229600 x 4525963 EMU. Setting auto_size = MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE only writes the flag to the XML; it did not change any run font size (still None) in my test, and I did not render the slide.