I also proposed this python library (<a href="https://github.com/MatteoGuadrini/fontpreview" rel="nofollow">https://github.com/MatteoGuadrini/fontpreview</a>) because it is really well done! I also tried using the FontBanner class to do more complex things:
from fontpreview import FontBanner
fb = FontBanner('/tmp/noto.ttf', 'landscape', bg_color=(253, 194, 45))
fb.save('/tmp/fb.png')
You can also upload background images:
fb.bg_image = 'image/path.jpg'
fb.draw()<p>I also found this reference in stackoverflow: <a href="https://stackoverflow.com/questions/1920129/methods-to-create-text-preview-from-a-font" rel="nofollow">https://stackoverflow.com/questions/1920129/methods-to-creat...</a>