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

Re: [pygame] Fonts



Do os.path.exists(filename) to make sure the file exists. It could be your working directory is wrong, or the capitalization doesn't match.

-Christopher


On Sun, Feb 24, 2013 at 2:45 PM, myles broomes <mylesbroomes@xxxxxxxxxxxxx> wrote:
Hi,
I loaded a .ttf file into the pygame folder but I can't use it in pygame. The font is 'baroquescript' and the error I get is as follows: 'IOError: unable to read font file 'baroquescript.ttf'. As far as I know, I've put the file in the right place but what am I doing wrong?

Thanks in advance,
Myles Broomes