Problem with BFont lib

I tried compiling and running test.c, the example program that comes with
the BFont library. It will not load the images, when it gets to this point
in the LoadFont function in BFont.c:

surface = (SDL_Surface *) IMG_Load(filename);

surface returns NULL (0x00000000). I have used IMG_Load elsewhere with
success.

Can anyone help me? I can’t find too much documentation on BFont, and I
can’t find the SFont library at all. The SFont page seems to be broken.

Thanks,

Dave–


David Leblond
me at davidleblond.com
www.davidleblond.com

Hi,

try to get more info by calling IMG_GetError (or something, check the header
file for the exact name).

The SFont files can be downloaded from my page about a utility for BFont and
SFont. This utility might be usefull to you too!:

http://www.2dgame-tutorial.com/sdl/fontbuilder/index.htm

(I wanted to put the SDL link here, but I couldn’t access it for quit a
while).

On Sat, 22 Feb 2003 11:12:57 -0500 “David Leblond”
wrote.>I tried compiling and running test.c, the example program that comes with
the BFont library. It will not load the images, when it gets to this point
in the LoadFont function in BFont.c:

surface = (SDL_Surface *) IMG_Load(filename);

surface returns NULL (0x00000000). I have used IMG_Load elsewhere with
success.

Can anyone help me? I can’t find too much documentation on BFont, and I
can’t find the SFont library at all. The SFont page seems to be broken.

Thanks,

Dave


David Leblond
me at davidleblond.com
www.davidleblond.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Weird,

I already answered but it never showed up…

Try to call IMG-GetError (or something like that) for more info about the
NULL.

SFont can be found here (I ?supply? it together with a utility I wrote)

http://www.libsdl.org/applications.php?match_id=1147> ----- Original Message -----

From: dcleblond@nc.rr.com (David Leblond)
To:
Sent: Saturday, February 22, 2003 5:12 PM
Subject: [SDL] Problem with BFont lib

I tried compiling and running test.c, the example program that comes with
the BFont library. It will not load the images, when it gets to this
point
in the LoadFont function in BFont.c:

surface = (SDL_Surface *) IMG_Load(filename);

surface returns NULL (0x00000000). I have used IMG_Load elsewhere with
success.

Can anyone help me? I can’t find too much documentation on BFont, and I
can’t find the SFont library at all. The SFont page seems to be broken.

Thanks,

Dave


David Leblond
me at davidleblond.com
www.davidleblond.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

It gives me the same problem with SFont. The error reported is “Cannot load
file font01.png” But I can get IMG_Load to work elsewhere. Any ideas?

Dave

“patrick” <patrick at 2dgame-tutorial.com> wrote in message
news:8378421.1046084104312.JavaMail.Administrator at atp…

Hi,

try to get more info by calling IMG_GetError (or something, check the
header
file for the exact name).

The SFont files can be downloaded from my page about a utility for BFont
and
SFont. This utility might be usefull to you too!:

http://www.2dgame-tutorial.com/sdl/fontbuilder/index.htm

(I wanted to put the SDL link here, but I couldn’t access it for quit a
while).

On Sat, 22 Feb 2003 11:12:57 -0500 “David Leblond” <@David_Leblond>
wrote.
I tried compiling and running test.c, the example program that comes with
the BFont library. It will not load the images, when it gets to this
point> >in the LoadFont function in BFont.c:

surface = (SDL_Surface *) IMG_Load(filename);

surface returns NULL (0x00000000). I have used IMG_Load elsewhere with
success.

Can anyone help me? I can’t find too much documentation on BFont, and I
can’t find the SFont library at all. The SFont page seems to be broken.

Thanks,

Dave


David Leblond
me at davidleblond.com
www.davidleblond.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl