[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] tab rendering in text?
Michael wrote:
The only problem is that I can't seem to make the surface I'm rendering
to transparent in the way font.render () does. I can make the surface
color transparent but then it looks bad (I get speckles of the color
around the font edges).. I guess because of the anti-aliasing. Any
suggestions?
create the new surface with the SRCALPHA flag, 32 bits.
pygame has its own custom destination alpha blitting, so
this sort of thing should work great in pygame, where it
can't in straight SDL.
newsurface = pygame.Surface(size, SRCALPHA, 32)