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

[pygame] sdl_ttf font render failed



hi pygamers,
whenever I use font.render() with the antialias param set to False I
get this error:

 File "pysssi_dist.py", line 258, in printf
   s = self.print_font.render( str,False,self.color1)
pygame.error: SDL_ttf render failed

Anyone know why this is so? I'm using libsdl-ttf1.2 and pygame 1.7.1
on an ubuntu system. Easily reproducable:

import pygame
pygame.init()
(6, 0)
font = pygame.font.Font(pygame.font.get_default_font(),12)
text = font.render("hello world",False,(255,0,0))
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
pygame.error: SDL_ttf render failed
text = font.render("hello world",True,(255,0,0))
(works...)

greetings from AT simon