summaryrefslogtreecommitdiff
path: root/pango/pangoft2-render.c
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 /pango/pangoft2-render.c
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.
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r--pango/pangoft2-render.c5
1 files changed, 5 insertions, 0 deletions
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))