summaryrefslogtreecommitdiff
path: root/src/cairo-os2-surface.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-17 00:53:30 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-17 00:58:40 -0400
commit3ec94f9b5917b8f71304c982bd153e5a810f3b12 (patch)
treec112c1b6926b1e6b5846e41d82ac98124fcc8d2e /src/cairo-os2-surface.c
parent0e7bcb5e3793771d50f7d391d7b1e538ef220a80 (diff)
Support compiling without fontconfig
Adds a new, fake, fontconfig font backend. Fontconfig can be disabled using --disable-fc, in which case the toy text API wont find fonts and the internal font will always be used. Also defines the feature macro CAIRO_HAS_FC_FONT. The two fontconfig-specific functions in cairo-ft.h depend on that macro now.
Diffstat (limited to 'src/cairo-os2-surface.c')
-rw-r--r--src/cairo-os2-surface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-os2-surface.c b/src/cairo-os2-surface.c
index fa678bd2..82bab3be 100644
--- a/src/cairo-os2-surface.c
+++ b/src/cairo-os2-surface.c
@@ -39,7 +39,9 @@
#include "cairo-os2-private.h"
+#if CAIRO_HAS_FC_FONT
#include <fontconfig/fontconfig.h>
+#endif
#include <float.h>
#ifdef BUILD_CAIRO_DLL
@@ -101,7 +103,7 @@ cairo_os2_init (void)
DisableFPUException ();
-#if CAIRO_HAS_FT_FONT
+#if CAIRO_HAS_FC_FONT
/* Initialize FontConfig */
FcInit ();
#endif
@@ -132,7 +134,7 @@ cairo_os2_fini (void)
cairo_debug_reset_static_data ();
-#if CAIRO_HAS_FT_FONT
+#if CAIRO_HAS_FC_FONT
# if HAVE_FCFINI
/* Uninitialize FontConfig */
FcFini ();