summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-screen.c
diff options
context:
space:
mode:
authorSylvain Pasche <sylvain.pasche@gmail.com>2008-01-22 23:59:36 +0100
committerBehdad Esfahbod <behdad@behdad.org>2008-08-05 16:30:36 -0400
commit28d18f3f936988483a47dd30f55ee2403bc006c3 (patch)
treeb55e7295fa562b25d90afbaae9c032c1edf77ca2 /src/cairo-xlib-screen.c
parent0013f2c2696146e71f043437a4727a1b18706b09 (diff)
downloadcairo-28d18f3f936988483a47dd30f55ee2403bc006c3.tar.gz
[cairo-ft] Fontconfig defines for LCD constants when using Fontconfig < 2.6
This adds define for compatibility when without the new lcd filtering constants (Fontconfig patch not yet applied, see bug 13566).
Diffstat (limited to 'src/cairo-xlib-screen.c')
-rw-r--r--src/cairo-xlib-screen.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cairo-xlib-screen.c b/src/cairo-xlib-screen.c
index 1b2340bf6..d7b609a75 100644
--- a/src/cairo-xlib-screen.c
+++ b/src/cairo-xlib-screen.c
@@ -132,6 +132,15 @@ get_integer_default (Display *dpy,
#define FC_HINT_FULL 3
#endif
+/* Fontconfig version older than 2.6 didn't have these options */
+#ifndef FC_LCD_FILTER
+#define FC_LCD_FILTER "lcdfilter"
+#define FC_LCD_NONE 0
+#define FC_LCD_DEFAULT 1
+#define FC_LCD_LIGHT 2
+#define FC_LCD_LEGACY 3
+#endif
+
static void
_cairo_xlib_init_screen_font_options (Display *dpy, cairo_xlib_screen_info_t *info)
{