Code

Enable text output for Cairo renderer if Cairo has FreeType support enabled
authormiklosh <miklosh@users.sourceforge.net>
Thu, 3 Jan 2008 14:43:35 +0000 (14:43 +0000)
committermiklosh <miklosh@users.sourceforge.net>
Thu, 3 Jan 2008 14:43:35 +0000 (14:43 +0000)
src/extension/internal/cairo-render-context.cpp

index c92dd04bf95c7383924a6f725f09aff0c561dd3d..4c4fd58b24b7b2628cb82fec45d27d07d384fbd5 100644 (file)
@@ -70,7 +70,7 @@
 #endif
 
 
-#ifndef PANGO_ENABLE_BACKEND
+#ifdef CAIRO_HAS_FT_FONT
 #include <cairo-ft.h>
 #endif
 
@@ -1405,7 +1405,7 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix
 
     cairo_save(_cr);
 
-#ifndef PANGO_ENABLE_BACKEND
+#ifdef CAIRO_HAS_FT_FONT
     cairo_font_face_t *font_face = cairo_ft_font_face_create_for_pattern(fc_pattern);
     cairo_set_font_face(_cr, font_face);