[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] SDL_ttf render failed



Jonathan Doughty wrote:
self.text = font.render(message, 0, (255,0,0), self.notcolor)

pygame.error: SDL_ttf render failed
back when i was on gentoo i had the same problem. i was the only gentoo user on the planet to have the same problem (strange). the error is coming from freetype. somehow the libraries get into a funk and you cannot render non-antialiased text. if you pass '1' as the second arg to render() it will work just fine.

i never was able to resolve this. i just enabled antialiasing on games i wanted to play and they usually worked fine. i never figured out what was wrong, but back in debian-land everything is a-ok.