How can i add rotate text to dft mode?

Hello everyone,
I’m reading this dft tutorial
I want to add text to it and it’s work


But i don’t know how to rotate “Text”.
I tried to use warpAffine() and putText(). But i still stuck
Any help would be appreciated.