Removed the setFont calls in the example codes
parent
843f602a4e
commit
1dfc621c3c
|
@ -23,7 +23,6 @@ int main(int argc, char *argv[])
|
|||
sf::RenderWindow window(sf::VideoMode::getDesktopMode(), "");
|
||||
tgui::Gui gui(window);
|
||||
|
||||
gui.setFont("fonts/DejaVuSans.ttf");
|
||||
auto theme = std::make_shared<tgui::Theme>("widgets/Black.txt");
|
||||
|
||||
auto picLandscape = std::make_shared<tgui::Picture>("Background-Landscape.png");
|
||||
|
|
|
@ -7,7 +7,6 @@ int main()
|
|||
window.setFramerateLimit(60);
|
||||
|
||||
tgui::Gui gui(window);
|
||||
gui.setFont("../../fonts/DejaVuSans.ttf");
|
||||
|
||||
tgui::Theme::Ptr theme = std::make_shared<tgui::Theme>("../../widgets/Black.txt");
|
||||
|
||||
|
|
|
@ -54,9 +54,6 @@ int main()
|
|||
|
||||
try
|
||||
{
|
||||
// Load the font
|
||||
gui.setFont("../../fonts/DejaVuSans.ttf");
|
||||
|
||||
// Load the widgets
|
||||
loadWidgets(gui);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ int main()
|
|||
{
|
||||
sf::RenderWindow window(sf::VideoMode(400, 300), "TGUI window");
|
||||
tgui::Gui gui(window);
|
||||
gui.setFont("../../fonts/DejaVuSans.ttf");
|
||||
|
||||
// Create the background image
|
||||
gui.add(std::make_shared<tgui::Picture>("../Linux.jpg"));
|
||||
|
|
Loading…
Reference in New Issue