Re: [pygame] Font transparency in 8bits mode

2006-07-05 Thread Rikard Bosnjakovic
On 7/5/06, XTC's Addict <[EMAIL PROTECTED]> wrote: Maybe i could render my texts with a fixed background color, and then i could tell to pygame that this color is transparent ? You can always give it a try with my_rendered_font.convert_alpha() and then my_rendered_font.set_colorkey( (0,0,0) ),

Re: [pygame] Font transparency in 8bits mode

2006-07-05 Thread XTC's Addict
From: "Rikard Bosnjakovic" <[EMAIL PROTECTED]> Reply-To: pygame-users@seul.org To: pygame-users@seul.org Subject: Re: [pygame] Font transparency in 8bits mode Date: Wed, 5 Jul 2006 10:56:40 +0200 On 7/5/06, XTC's Addict <[EMAIL PROTECTED]> wrote: I only get some blac

Re: [pygame] Font transparency in 8bits mode

2006-07-05 Thread Rikard Bosnjakovic
On 7/5/06, XTC's Addict <[EMAIL PROTECTED]> wrote: I only get some black areas where i intented to get some text :( Fonts are rendered on 24bpp if antialias is set. Else it will render to 8bpp. Your black font-render is probably an artefact from downsampling 24bpp to 8bpp. -- Rikard.

[pygame] Font transparency in 8bits mode

2006-07-05 Thread XTC's Addict
Hi, i'm making an application with pygame on a 8 bpp display. When I render a text like this : font.render( my_text, 1, (0,0,0) ) I only get some black areas where i intented to get some text :( Of course, if my display is in 32 bits, the text is correctly rendered with correct alpha. Anyon