From: ellson Date: Thu, 13 Mar 2008 15:13:38 +0000 (+0000) Subject: use a configure test for pango-fontconfig support X-Git-Tag: LAST_LIBGRAPH~32^2~4512 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=991793dd6f6a89dc1820f73cf36e8f9f5a880559;p=graphviz use a configure test for pango-fontconfig support (to fix issue where windows has fontconfig, but pango not built to use it) --- diff --git a/configure.ac b/configure.ac index f8992c591..b1ef832e8 100644 --- a/configure.ac +++ b/configure.ac @@ -1689,6 +1689,14 @@ AC_SUBST(PANGOCAIRO_LIBS) fi AM_CONDITIONAL(WITH_PANGOCAIRO, [test "x$HAVE_PANGOCAIRO" != "x"]) +# see if pango uses a fontconfig/freetype2 backend +if test "x$HAVE_PANGOCAIRO" != "x"; then + save_LIBS=$LIBS + LIBS="$LIBS $PANGOCAIRO_LIBS" + AC_CHECK_FUNCS([pango_fc_font_lock_face pango_fc_font_unlock_face]) + LIBS=$save_LIBS +fi + dnl ----------------------------------- dnl INCLUDES and LIBS for GLITZ diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c index 620722a20..d9d54bd62 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -24,7 +24,7 @@ #ifdef HAVE_PANGOCAIRO #include -#ifdef HAVE_FONTCONFIG +#ifdef HAVE_PANGO_FC_FONT_LOCK_FACE #include #endif @@ -93,7 +93,7 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath) buf[0] = '\0'; if (psfnt) strcat(buf, "(ps) "); -#ifdef PANGO_TYPE_FC_FONT +#ifdef HAVE_PANGO_FC_FONT_LOCK_FACE { FT_Face face; PangoFcFont *fcfont;