From df4766b27c15eb949ea06abb3534e31ac6ec99b6 Mon Sep 17 00:00:00 2001 From: miklosh Date: Thu, 3 Jan 2008 14:43:35 +0000 Subject: [PATCH] Enable text output for Cairo renderer if Cairo has FreeType support enabled --- src/extension/internal/cairo-render-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index c92dd04bf..4c4fd58b2 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -70,7 +70,7 @@ #endif -#ifndef PANGO_ENABLE_BACKEND +#ifdef CAIRO_HAS_FT_FONT #include #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); -- 2.30.2