VickiLanger / LGBTQ-of-the-day-bot

Twitter bot tweeting fun goofy lgbtq things and queer history of the day
https://twitter.com/LGBTQotd
GNU General Public License v3.0
80 stars 172 forks source link

Attempt at solving issue #203 - random font selection #212

Closed tejusrevi closed 3 years ago

tejusrevi commented 3 years ago

I tried to solve this issue by creating a list of all files in assets folder and choosing a random item from that list for font_type and font_type2.

But few fonts gave a distorted output post_98

VickiLanger commented 3 years ago

@tejusrevi If you don't mind me asking, how did you test this locally? That's something I haven't done much

tejusrevi commented 3 years ago

@VickiLanger I called the function in the main body of get_img_for_tweet.py and ran just that .py file.

VickiLanger commented 3 years ago

@VickiLanger I called the function in the main body of get_img_for_tweet.py and ran just that .py file.

Hmm, okay. I think, something like below?

>>> from get_img_for_tweet.py import *
>>> get_img_for_tweet("some strings of things to test the image")
tejusrevi commented 3 years ago

Yeah. That's exactly what I did. Only difference is that I didn't import into an other python file.

VickiLanger commented 3 years ago

Thanks for helping. I appreciate it