Index: trunk/src/lib/graphics/graphics_engine.cc
===================================================================
--- trunk/src/lib/graphics/graphics_engine.cc	(revision 5343)
+++ trunk/src/lib/graphics/graphics_engine.cc	(revision 5344)
@@ -27,5 +27,5 @@
 #include "ini_parser.h"
 #include "substring.h"
-
+#include "text.h"
 
 using namespace std;
@@ -564,5 +564,5 @@
 if (this->geTextCFPS == NULL)
 {
-  this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
+  this->geTextCFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
   this->geTextCFPS->setName("curFPS");
   this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
@@ -571,5 +571,5 @@
 if (this->geTextMaxFPS == NULL)
 {
-      this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
+      this->geTextMaxFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
       this->geTextMaxFPS->setName("MaxFPS");
       this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
@@ -578,5 +578,5 @@
 if (this->geTextMinFPS == NULL)
 {
-      this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
+      this->geTextMinFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
       this->geTextMinFPS->setName("MinFPS");
       this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
Index: trunk/src/lib/graphics/text_engine/font.h
===================================================================
--- trunk/src/lib/graphics/text_engine/font.h	(revision 5343)
+++ trunk/src/lib/graphics/text_engine/font.h	(revision 5344)
@@ -2,4 +2,8 @@
  * @file font.h
  * brief Definition of the FONT-loading class
+ *
+ * !! IMPORTANT !! When using ttf fonts clear the license issues prior to
+ * adding them to orxonox. This is really important, because we do not want
+ * to offend anyone.
  */
 
Index: trunk/src/lib/graphics/text_engine/text.cc
===================================================================
--- trunk/src/lib/graphics/text_engine/text.cc	(revision 5343)
+++ trunk/src/lib/graphics/text_engine/text.cc	(revision 5344)
@@ -38,20 +38,4 @@
   if (fontFile != NULL)
     this->setFont(fontFile, fontSize);
-  this->setType(type);
-}
-
-/**
- *  creates a new Text Element
- * @param font the Font to render this text in
- * @param type The renderType to display this font in
- *
- * this constructor is private, because the user should initialize
- * a text with the TextEngine.
- */
-Text::Text(Font* font, TEXT_RENDER_TYPE type)
-{
-  this->init();
-
-  this->font = font;
   this->setType(type);
 }
@@ -89,15 +73,4 @@
 
 /**
- * sets the Font of this Text to font
- * @param font the Font (normaly from the ResourceManager) to allocate to this Text
- */
-void Text::setFont(Font* font)
-{
-  if (this->font != NULL)
-    ResourceManager::getInstance()->unload(this->font);
-  this->font = font;
-}
-
-/**
  * sets the Font of this Text to font from fontFile
  * @param fontFile the File to load the Font from.
@@ -111,11 +84,18 @@
 
   tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, &fontSize);
-  if (tmpFont == NULL)
+  if (tmpFont != NULL)
+  {
+    if (this->font != NULL)
+      ResourceManager::getInstance()->unload(this->font);
+    this->font = tmpFont;
+  }
+
+  else
   {
     PRINTF(2)("Font %s could not be loaded, probably file not found\n", fontFile);
-    this->setFont(NULL);
-  }
-  else
-    this->setFont(tmpFont);
+    if (this->font != NULL)
+      ResourceManager::getInstance()->unload(this->font);
+    this->font = NULL;
+  }
 }
 
Index: trunk/src/lib/graphics/text_engine/text.h
===================================================================
--- trunk/src/lib/graphics/text_engine/text.h	(revision 5343)
+++ trunk/src/lib/graphics/text_engine/text.h	(revision 5344)
@@ -24,5 +24,4 @@
 // FORWARD DECLARATION
 class Font;
-
 
 /**
@@ -57,5 +56,4 @@
 class Text : public Element2D
 {
-  friend class TextEngine;
   public:
     Text(const char* fontFile, unsigned int fontSize = TEXT_DEFAULT_SIZE, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC);
@@ -86,7 +84,4 @@
 
   private:
-    Text(Font* font = NULL, TEXT_RENDER_TYPE type = TEXT_RENDER_DYNAMIC);
-    void setFont(Font* font);
-
 
   private:
Index: trunk/src/lib/graphics/text_engine/text_engine.cc
===================================================================
--- trunk/src/lib/graphics/text_engine/text_engine.cc	(revision 5343)
+++ trunk/src/lib/graphics/text_engine/text_engine.cc	(revision 5344)
@@ -23,4 +23,6 @@
 
 #include "text_engine.h"
+#include "text.h"
+#include "font.h"
 
 using namespace std;
@@ -34,6 +36,4 @@
 #include "class_list.h"
 
-#include "p_node.h"
-#include "vector.h"
 #include "debug.h"
 #include "list.h"
@@ -126,25 +126,4 @@
 
 /**
- *  creates a new Text with a certain font.
- * @see Font::Font
- * @see Text::Text
-*/
-Text* TextEngine::createText(const char* fontFile, unsigned int fontSize, int textType)
-{
-  Font* tmpFont;
-  Text* newText;
-  Vector tmpVec;
-
-  tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, &fontSize);
-  if (!tmpFont)
-    {
-      PRINTF(2)("Font %s could not be loaded, probably file not found\n", fontFile);
-      return NULL;
-    }
-  else
-    return new Text(tmpFont, TEXT_RENDER_DYNAMIC);
-}
-
-/**
  *  outputs some nice Debug information
 
Index: trunk/src/lib/graphics/text_engine/text_engine.h
===================================================================
--- trunk/src/lib/graphics/text_engine/text_engine.h	(revision 5343)
+++ trunk/src/lib/graphics/text_engine/text_engine.h	(revision 5344)
@@ -18,6 +18,4 @@
 
 #include "base_object.h"
-#include "font.h"
-#include "text.h"
 
 #include "vector.h"
@@ -26,4 +24,5 @@
 class PNode;
 class Font;
+class Text;
 
 ///////////////////
@@ -37,8 +36,4 @@
   /** @returns a Pointer to the only object of this Class */
   inline static TextEngine* getInstance() { if (!singletonRef) singletonRef = new TextEngine();  return singletonRef; };
-
-  Text* createText(const char* fontFile,
-                   unsigned int fontSize = TEXT_DEFAULT_SIZE,
-                   int textType = TEXT_RENDER_DYNAMIC);
 
   void debug() const;
Index: trunk/src/lib/shell/shell.cc
===================================================================
--- trunk/src/lib/shell/shell.cc	(revision 5343)
+++ trunk/src/lib/shell/shell.cc	(revision 5344)
@@ -22,5 +22,5 @@
 
 
-#include "text_engine.h"
+#include "text.h"
 #include "list.h"
 #include "graphics_engine.h"
@@ -225,5 +225,5 @@
   for (unsigned int i = 0; i < bufferDisplaySize; i++)
   {
-    bufferText[i] = TextEngine::getInstance()->createText(this->fontFile, this->textSize, TEXT_RENDER_DYNAMIC);
+    bufferText[i] = new Text(this->fontFile, this->textSize, TEXT_RENDER_DYNAMIC);
     bufferText[i]->setColor(1, 0, 0);
     bufferText[i]->setAlignment(TEXT_ALIGN_LEFT);
Index: trunk/src/lib/shell/shell_input.h
===================================================================
--- trunk/src/lib/shell/shell_input.h	(revision 5343)
+++ trunk/src/lib/shell/shell_input.h	(revision 5344)
@@ -10,5 +10,5 @@
 #define _SHELL_INPUT_H
 
-#include "text_engine.h"
+#include "text.h"
 #include "event_listener.h"
 
