Lee Harr wrote:
I worked out a function to let me render text with tabs so it acts like I expect tabs to act. Mostly it just tracks tab offsets and aligns to those and renders each text fragment in the proper place on the surface which is then returned.Is there a way to make pygame render the tabs in text properly?How about just replacing them with spaces before rendering? a = 'some\tstring\twith tabs and spaces' b = a.replace('\t', ' '*4)