diff --git a/examples/android/jni/main.cpp b/examples/android/jni/main.cpp index 99549737..a4facc71 100644 --- a/examples/android/jni/main.cpp +++ b/examples/android/jni/main.cpp @@ -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("widgets/Black.txt"); auto picLandscape = std::make_shared("Background-Landscape.png"); diff --git a/examples/full_example/FullExample.cpp b/examples/full_example/FullExample.cpp index a6a2b472..b6fe0c54 100644 --- a/examples/full_example/FullExample.cpp +++ b/examples/full_example/FullExample.cpp @@ -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("../../widgets/Black.txt"); diff --git a/examples/login_screen/LoginScreen.cpp b/examples/login_screen/LoginScreen.cpp index e09e2d52..5f07781c 100644 --- a/examples/login_screen/LoginScreen.cpp +++ b/examples/login_screen/LoginScreen.cpp @@ -54,9 +54,6 @@ int main() try { - // Load the font - gui.setFont("../../fonts/DejaVuSans.ttf"); - // Load the widgets loadWidgets(gui); } diff --git a/examples/scalable/Scalable.cpp b/examples/scalable/Scalable.cpp index 678b5a1d..532468de 100644 --- a/examples/scalable/Scalable.cpp +++ b/examples/scalable/Scalable.cpp @@ -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("../Linux.jpg"));