From 12c742f538bd24b8d25b4fe971c7eef507c3b4c9 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 10 Sep 2007 07:46:51 +0000 Subject: Modified the Aethyra client to use the TMW TrueType class, rather than the inbuilt GUIChan TrueType class. (Didn't use it originally because I didn't see the difference, when there's a considerable speedup, and that originally the import for TMW was broken code at the time, which has been fixed since.) --- src/gui/gui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/gui.cpp') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 846a0f44..f33d9495 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -22,12 +22,14 @@ #include #include #include +#include // Should stay here because of Guichan being sensitive to headers order #include #include "focushandler.h" #include "gui.h" +#include "truetypefont.h" #include "viewport.h" #include "window.h" #include "windowcontainer.h" @@ -36,7 +38,6 @@ #include "../configuration.h" #include "../graphics.h" #include "../log.h" -#include "../sdltruetypefont.hpp" #include "../resources/image.h" #include "../resources/imageset.h" @@ -113,12 +114,12 @@ Gui::Gui(Graphics *graphics): // Set global font try { - mGuiFont = new gcn::contrib::SDLTrueTypeFont("/usr/local/share/aethyra/data/fonts/dejavusans.ttf", 10); + mGuiFont = new TrueTypeFont("/usr/local/share/aethyra/data/fonts/dejavusans.ttf", 10); } catch (gcn::Exception e) { try { - mGuiFont = new gcn::contrib::SDLTrueTypeFont("data/fonts/dejavusans.ttf", 10); + mGuiFont = new TrueTypeFont("data/fonts/dejavusans.ttf", 10); } catch (gcn::Exception e) { -- cgit v1.2.3-70-g09d2