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

Re: [pygame] trying to print all system fonts, getting a freeze



hey,

what sys u on?

print(fname) to find baddy font?

On Tue, Mar 15, 2011 at 12:11 AM, Sean Wolfe <ether.joe@xxxxxxxxx> wrote:
Hey everybody, I'm trying to get pygame to render all the system
fonts, something like this:
------
yoffset = 10
for fname in pygame.font.get_fonts():
   fn = pygame.font.SysFont(fname, 16)
   screen.blit(fn.render(fname, False, [0,255,0]), [yoffset, 10])
   pygame.display.update()
   yoffset += 20
-----

It gets to two or three fonts and then hangs up and goes unresponsive;
I have to kill the process.

Awhile back this was working for me, maybe on a different python
version. I'm on 2.6.4 right now.

Any ideas why it would be hanging up after printing a few different fonts?