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

Re: [pygame] BUG: SysFont hangs when loading certain fonts (with cause and fix ideas)




On Mon, Aug 22, 2011 at 6:19 PM, Jeremy Sharpe <jeremy.adamson.sharpe@xxxxxxxxx> wrote:
Created a gist (https://gist.github.com/1162771) containing a patch
and a small pygame program I used to test it (it runs through all
bold/italic combination of all the system fonts, navigation by
clicking the left and right arrows on the keyboard). The originally
provided sysfont_hang.py script now successfully completes.

In the patch I've removed the while loop, since it has no effect
(other than to potentially cause infinite loops). In the case that
neither the request style nor the default style (no bold and no
italic) is available, it defaults to an arbitrary style that does
exist. It then sets gotbold and gotitalic as appropriate (these are
flags that determine whether fake bolding or italicizing should be
done).


Thanks.  That seems really good.

It's committed:
    https://bitbucket.org/pygame/pygame/changeset/67b60fa1972e

cheers,