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

Re: [pygame] Re: Ugly fonts (yes, I use AA)



Now this may seem silly, but I got caught by this bug a while ago. Do
you blit the background when you are updating the text?

In your code :

def update(self):
      text_row = 0
      for item in self.items:
          item_text = self.font.render(item, 0, (249, 249, 249))
          self.canvas.blit(item_text, self.ritems.move(0, text_row))
          text_row += self.font_size + 1


It doesnt look like the background is being put into there, just the text.



On 11/9/06, Karlo Lozovina <karlo.lozovina@xxxxxxxxx> wrote:
On 11/10/06, Karlo Lozovina <karlo.lozovina@xxxxxxxxx> wrote:

>             item_text = self.font.render(item, 0, (249, 249, 249))

Just once more to be clear, I did use AA, it's just that I pasted part
of the code when I tried it without! :)

--
Karlo Lozovina -- Mosor
"Parce mihi domine quia Dalmata sum."