SFML community forums

Help => Graphics => Topic started by: Sakurazaki on May 25, 2013, 08:20:13 pm

Title: [Solved] font.loadFromFile fails
Post by: Sakurazaki on May 25, 2013, 08:20:13 pm
Hello,

This is the snippet of code im using to load font:

sf::Font        font;
font.loadFromFile("arcade.ttf");

I have put the font in the same folder of the executable.

When I compile the program i get this output: http://screencloud.net/v/b2xj (http://screencloud.net/v/b2xj)

I execute the exe through explorer, double clicking the executable.

I've ensure both are in the same directory, the cwd of the program when executed is the same
as the font. Everything is fine but I still get that.

Any way to solve this problem?

Thanks!
Title: Re: font.loadFromFile fails
Post by: Laurent on May 25, 2013, 08:35:19 pm
Don't use release libraries in debug mode (and vice versa).
Title: Re: font.loadFromFile fails
Post by: Sakurazaki on May 25, 2013, 08:39:29 pm
Damn i forgot to add the -d to the lib includes.

Thanks, it was such an stupid error.