From 2e2a1c7337b9e1e39752543d33864eb62b3a14c0 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 25 Oct 2009 14:22:47 +0000 Subject: [PATCH] Make new GUI use the new font engine --- include/gui2/Theme.hpp | 4 +- layouts/demo.xml | 3 +- src/UIDemo.cpp | 6 +- src/ft/Font.cpp | 110 ++++++++++++++++++++----------------- src/ft/IFont.hpp | 2 + src/gui/Font.cpp | 2 +- src/gui2/Button.cpp | 7 ++- src/gui2/Label.cpp | 4 +- src/gui2/RenderContext.cpp | 4 +- src/gui2/Theme.cpp | 5 +- 10 files changed, 84 insertions(+), 63 deletions(-) diff --git a/include/gui2/Theme.hpp b/include/gui2/Theme.hpp index bdfe1b1..796bc05 100644 --- a/include/gui2/Theme.hpp +++ b/include/gui2/Theme.hpp @@ -22,10 +22,12 @@ #include "Platform.hpp" #include "gui2/Colour.hpp" -#include "gui/IFont.hpp" +#include "ft/IFont.hpp" namespace gui { + using namespace ft; + class Theme { public: Theme(); diff --git a/layouts/demo.xml b/layouts/demo.xml index 5d45643..a1f684b 100644 --- a/layouts/demo.xml +++ b/layouts/demo.xml @@ -5,6 +5,7 @@