[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] a question about Font
- To: pygame-users@xxxxxxxx
- Subject: [pygame] a question about Font
- From: flyaflyaa <flyaflyaa@xxxxxxxxx>
- Date: Wed, 08 Jun 2005 20:59:44 +0800
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Thu, 09 Jun 2005 08:56:22 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=nZUL/7EzkyQYSqkV+byTDS+pVPbGNRwF1pvp4mEI23C8bLipc+2UGYiymZC9YeqXzjDsCoAi/HcF23Qt+GWM0Uz5bVdxscaHn35Fe3tejqvDQ1lKJw/nM8XYXgVs1ypDDG51vTFVAozRmd2UiAcnDGRo+6avIegmJOAlepmsEPc=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
I use font " pygame.font.Font("font.ttf", 20) ",and I have copy the
font.ttf file in the current folder, using py2exe to complie it, when
making a console exe (console = ["gamemain.py"]), It work well, but
when complied it to windows model(windows = ["gamemain.py"]), executing
it will meet a error at line " pygame.font.Font("font.ttf", 20) ",the
log message:
Traceback (most recent call last):
File "gamemain.py", line 121, in ?
File "gamemain.py", line 74, in main
IOError: unable to read font filename
what's wrong, I use Chinese vesion windows 2000