From: ellson Date: Fri, 26 May 2006 17:20:36 +0000 (+0000) Subject: its no good if freetype is not installed X-Git-Tag: LAST_LIBGRAPH~32^2~6517 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fec18bb0a39651a3e6eaa93aea6bae35538dc88;p=graphviz its no good if freetype is not installed --- diff --git a/plugin/gd/gvtextlayout_gd.c b/plugin/gd/gvtextlayout_gd.c index 09bcf4a2f..ec4f884c6 100644 --- a/plugin/gd/gvtextlayout_gd.c +++ b/plugin/gd/gvtextlayout_gd.c @@ -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}