Open bghull opened 3 years ago
This seems to work, which at least tells me this is just a question of font files:
text_frame.fit_text(font_family=u"Roboto", max_size=60, font_file="~/.fonts/Roboto-Medium.ttf")
It appears the text-fitting function fails when a single word is too long to fit into the text box placeholder at max_size
, and I can't manage to catch the error in a try-except loop for some reason.
My next thought is a two-birds-with-one-stone thing: there appears to be documented support for text resizing in the Google Slides API, so maybe solving the "auto-upload to Google storage instead of downloading a .pptx" would fix both of these issues. (Of course at this point I would consider a rewrite of the entire script to just use Google Slides natively everywhere...)