Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wicketd

Pages: [1]
1
When you run your program from Visual Studio, the working directory isn't your release or debug folder, but your solution directory. Try moving your .ttf where your .cpp are.
Of course, how stupid of me. Tinkering too long causes my brain to come up with all kinds of implausible theories. Thanks a lot for the quick response.

2
I've decided to check SFML out and am really pleased so far. However, I'm having a slight issue with the Font class that I just can't seem to solve. Whenever I directly debug in Visual Studio, I'm getting the error 'Failed to load font "arial.ttf" (failed to create the font face)'. However, after much tinkering, I accidentally opened the output executable directly from my debug folder and it worked like a charm:



Am I missing something obvious here? I've tried to follow the tutorial to the letter. The TTF file is in my working directory and everything appears to be set up properly (to me). Here is my code. While a minor nuisance at first, it's getting increasingly more annoying, so I would appreciate some help.

Thanks in advance.

Pages: [1]
anything