Python Forum
Lots of text objects? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Game Development (https://python-forum.io/forum-11.html)
+--- Thread: Lots of text objects? (/thread-15497.html)



Lots of text objects? - MuntyScruntfundle - Jan-19-2019

Hi there.

Im writing a monitor app, it gathers loads of data and gives a graphical representation. And, I'd like to add certain numbers as text. I'll need well over 100 different text objects.

So I really have to create 100+ text surfaces of each value and blit them to the main surface? Or is there a way to create a text layer, add all the text and just overlay this?

Or just a simple method that will draw text on the main surface?

Thanks.


RE: Lots of text objects? - micseydel - Jan-24-2019

Are you using pygame? Your question sounds very library-specific.