[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [announcement] SFont 0.1 for pygame
Jack Nutting wrote:
sfont looks very promising, but I get the following error at run-time:
File "spinvaders.py", line 707, in __init__
self.specialScoreFont = sfont.Font('data/arial_12_mac_chrome_0.png')
File "/Users/jnutting/projects/spinvaders/sfont.py", line 29, in __init__
self._load_characters(filename, firstchar)
File "/Users/jnutting/projects/spinvaders/sfont.py", line 56, in
_load_characters
ch = unichr(ord(ch)+1)
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
So I tried to see what "ch" was by putting a print before line 56 and
got this:
File "/Users/jnutting/projects/spinvaders/sfont.py", line 56, in
_load_characters
print "ch : " + ch
try repr(ch)
HTH
Niki Spahiev