Hi…,
I am a beginner. I have set up an class Game/Game.h with a myfont object.
class Game {
public:
ofTrueTypeFont myfont;
Game(){
myfont.loadFont("arial.ttf", 20);
}
void Draw(){
myfont.drawString("some Text", 0,0);
}
}
Then I have copied the arial.ttf in the data folder of the project. I’ve done this in OF 0.7.4 under Visual C++ 2010 Express Windows and OF 0.8.0 under XCode 4.6.3.
Under Windows the arial.ttf file is found and drawn, but under XCode the loadFont method doesn’t find the file. How to set the correct path in XCode?
Thanks
Michael