diff --git a/include.xml b/include.xml
index 2f7586044..fc1315e90 100644
--- a/include.xml
+++ b/include.xml
@@ -7,8 +7,6 @@
-
-
@@ -34,8 +32,11 @@
-
-
+
+
+
+
+
diff --git a/project/Build.xml b/project/Build.xml
index 43b41e5fe..1b9a3d520 100644
--- a/project/Build.xml
+++ b/project/Build.xml
@@ -41,13 +41,14 @@
-
+
diff --git a/project/src/ExternalInterface.cpp b/project/src/ExternalInterface.cpp
index 0ce79f57c..a5f9eb97e 100644
--- a/project/src/ExternalInterface.cpp
+++ b/project/src/ExternalInterface.cpp
@@ -10,7 +10,9 @@
#include
#include
#include
+#ifdef LIME_FREETYPE
#include
+#endif
#include
#include
#include
@@ -75,22 +77,30 @@ namespace lime {
value lime_font_load (value fontFace) {
-
+
+ #ifdef LIME_FREETYPE
Font *font = new Font (val_string (fontFace));
return alloc_float ((intptr_t)font);
+ #else
+ return alloc_null ();
+ #endif
}
value lime_font_load_glyphs (value fontHandle, value size, value glyphs) {
-
+
+ #ifdef LIME_FREETYPE
Image image;
Font *font = (Font*)(intptr_t)val_float (fontHandle);
value data = alloc_empty_object ();
alloc_field (data, val_id ("glyphs"), font->LoadGlyphs (val_int (size), val_string (glyphs), &image));
alloc_field (data, val_id ("image"), image.Value ());
return data;
-
+ #else
+ return alloc_null ();
+ #endif
+
}
diff --git a/project/src/graphics/Font.cpp b/project/src/graphics/Font.cpp
index 894b1ae65..ec35a8c99 100644
--- a/project/src/graphics/Font.cpp
+++ b/project/src/graphics/Font.cpp
@@ -1,4 +1,7 @@
#include
+#include
+#include FT_FREETYPE_H
+
typedef struct {
@@ -8,6 +11,7 @@ typedef struct {
} GlyphInfo;
+
namespace lime {