summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-03-01 20:48:51 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-03-01 20:48:51 +0000
commitc63801bd14a3ad1508c8683860f461fe3b4a9873 (patch)
treee8efb6c49ef8ea3bab74782209661a79cf86e0d3
parent9869351ea133a8e0c3814423abe3c03a268fe486 (diff)
downloadpango-c63801bd14a3ad1508c8683860f461fe3b4a9873.tar.gz
Build fixes from Andrew P. Lentvorski, Jr, #164655
2005-03-01 Owen Taylor <otaylor@redhat.com> Build fixes from Andrew P. Lentvorski, Jr, #164655 * pango/pangoft2-render.c: Duplicate the FT_LOAD_TARGET_MONO/FT_LOAD_MONOCHROME back-compat define from pangoft2.c here * examples/Makefile.am (pango_xftview_LDADD): Add X_LIBS to pango_xftview_LDADD since some old versions of xft.pc didn't add -lX11.
-rw-r--r--ChangeLog14
-rw-r--r--ChangeLog.pre-1-1014
-rw-r--r--examples/Makefile.am3
-rw-r--r--pango/pangoft2-render.c5
4 files changed, 33 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c3630ec4..e25b6e1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
2005-03-01 Owen Taylor <otaylor@redhat.com>
-
+
+ Build fixes from Andrew P. Lentvorski, Jr, #164655
+
+ * pango/pangoft2-render.c: Duplicate the
+ FT_LOAD_TARGET_MONO/FT_LOAD_MONOCHROME back-compat
+ define from pangoft2.c here
+
+ * examples/Makefile.am (pango_xftview_LDADD): Add
+ X_LIBS to pango_xftview_LDADD since some old versions
+ of xft.pc didn't add -lX11.
+
+2005-03-01 Owen Taylor <otaylor@redhat.com>
+
* configure.in: Use PKG_CHECK_MODULES not AM_PATH_GLIB_2_0
to avoid a problem where older verisons of AM_PATH_GLIB_2_0
silently ignored gmodule-no-export causing mysterious
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index c3630ec4..e25b6e1f 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,5 +1,17 @@
2005-03-01 Owen Taylor <otaylor@redhat.com>
-
+
+ Build fixes from Andrew P. Lentvorski, Jr, #164655
+
+ * pango/pangoft2-render.c: Duplicate the
+ FT_LOAD_TARGET_MONO/FT_LOAD_MONOCHROME back-compat
+ define from pangoft2.c here
+
+ * examples/Makefile.am (pango_xftview_LDADD): Add
+ X_LIBS to pango_xftview_LDADD since some old versions
+ of xft.pc didn't add -lX11.
+
+2005-03-01 Owen Taylor <otaylor@redhat.com>
+
* configure.in: Use PKG_CHECK_MODULES not AM_PATH_GLIB_2_0
to avoid a problem where older verisons of AM_PATH_GLIB_2_0
silently ignored gmodule-no-export causing mysterious
diff --git a/examples/Makefile.am b/examples/Makefile.am
index dce8b604..f655b45f 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -50,7 +50,8 @@ pango_xftview_LDADD = \
../pango/libpango-$(PANGO_API_VERSION).la \
../pango/libpangoft2-$(PANGO_API_VERSION).la \
../pango/libpangoxft-$(PANGO_API_VERSION).la \
- $(XFT_LIBS)
+ $(XFT_LIBS) \
+ $(X_LIBS)
###################################################
###################################################
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c
index b716c0aa..49908ca5 100644
--- a/pango/pangoft2-render.c
+++ b/pango/pangoft2-render.c
@@ -24,6 +24,11 @@
#include "pangoft2-private.h"
+/* for compatibility with older freetype versions */
+#ifndef FT_LOAD_TARGET_MONO
+#define FT_LOAD_TARGET_MONO FT_LOAD_MONOCHROME
+#endif
+
typedef struct _PangoFT2RendererClass PangoFT2RendererClass;
#define PANGO_FT2_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PANGO_TYPE_FT2_RENDERER, PangoFT2RendererClass))