Mar 15, 2021
Hi Iqbal, I'm glad you liked the article.
I would look into the documentation of PIL to see if you can add some "formatting syntax" to the text string so it knows how to highlight/bold/italicise/etc. parts of the text.
Worst case scenario you may have to format it manually, by drawing a new layer of text on top of your normal text.