Browse Source

fix for build without freetype

David Rose 24 years ago
parent
commit
f7bb229865
1 changed files with 7 additions and 4 deletions
  1. 7 4
      panda/src/text/config_text.cxx

+ 7 - 4
panda/src/text/config_text.cxx

@@ -18,10 +18,10 @@
 
 
 #include "config_text.h"
 #include "config_text.h"
 #include "staticTextFont.h"
 #include "staticTextFont.h"
-#include "dynamicTextFont.h"
-#include "dynamicTextPage.h"
 #include "textFont.h"
 #include "textFont.h"
 #include "textNode.h"
 #include "textNode.h"
+#include "dynamicTextFont.h"
+#include "dynamicTextPage.h"
 
 
 #include <dconfig.h>
 #include <dconfig.h>
 
 
@@ -30,10 +30,13 @@ NotifyCategoryDef(text, "");
 
 
 ConfigureFn(config_text) {
 ConfigureFn(config_text) {
   StaticTextFont::init_type();
   StaticTextFont::init_type();
-  DynamicTextFont::init_type();
-  DynamicTextPage::init_type();
   TextFont::init_type();
   TextFont::init_type();
   TextNode::init_type();
   TextNode::init_type();
+
+#ifdef HAVE_FREETYPE
+  DynamicTextFont::init_type();
+  DynamicTextPage::init_type();
+#endif
 }
 }
 
 
 const bool flatten_text = config_text.GetBool("flatten-text", true);
 const bool flatten_text = config_text.GetBool("flatten-text", true);