i modified my code from this :
int main(){
RenderWindow window(VideoMode(800, 600), "Scheduler Simulator",Style::Titlebar);
Font font;
Text menu;
if(!font.loadFromFile("Tools/PIXEARG_.TTF")){
std::cout<<"[MainWindow:Error] font not found" << std::endl;
}
menu.setFont(font);
menu.setString("hello!!");
menu.setCharacterSize(15);
menu.setFillColor(Color::Red);
while (window.isOpen()){ // main Loop
Event event;
while (window.pollEvent(event)){
if (event.type == Event::Closed)
window.close();
}
window.clear(Color::Black);
window.draw(menu);
window.display();
}
return 0;
}
to this
RenderWindow window(VideoMode(1000, 600), "Scheduler Simulator",Style::Titlebar);
Font fontMenu;
Text menu;
fontLoader(fontMenu);
menu.setFont(fontMenu);
menu.setString("hello!!");
menu.setCharacterSize(20);
menu.setFillColor(Color::Red);
while (window.isOpen()){ // main Loop
Event event;
while (window.pollEvent(event)){
if (event.type == Event::Closed)
window.close();
}
window.clear(Color::Blue);
window.draw(menu);
window.display();
}
return 0;
and the string " menu.setString("hello!!"); " is not visible any more
and i know why! some1 can help me??