]> granicus.if.org Git - graphviz/commitdiff
its no good if freetype is not installed
authorellson <devnull@localhost>
Fri, 26 May 2006 17:20:36 +0000 (17:20 +0000)
committerellson <devnull@localhost>
Fri, 26 May 2006 17:20:36 +0000 (17:20 +0000)
plugin/gd/gvtextlayout_gd.c

index 09bcf4a2f20bbddaf624a9998af0613f76e22daf..ec4f884c68ca89f9d1c24e9ccc1b895de44a55b9 100644 (file)
@@ -26,6 +26,8 @@
 #ifdef HAVE_LIBGD
 #include "gd.h"
 
+#ifdef HAVE_GD_FREETYPE
+
 /* fontsize at which text is omitted entirely */
 #define FONTSIZE_MUCH_TOO_SMALL 0.15
 /* fontsize at which text is rendered by a simple line */
@@ -157,9 +159,10 @@ gvtextlayout_engine_t textlayout_engine = {
     textlayout,
 };
 #endif
+#endif
 
 gvplugin_installed_t gvtextlayout_gd_types[] = {
-#ifdef HAVE_LIBGD
+#if defined(HAVE_LIBGD) && defined(HAVE_GD_FREETYPE)
     {0, "textlayout", 2, &textlayout_engine, NULL},
 #endif
     {0, NULL, 0, NULL, NULL}