Code

Comment out cairo-ft for font rendering. We should not need to depend on freetype...
authorishmal <ishmal@users.sourceforge.net>
Sun, 8 Oct 2006 03:59:41 +0000 (03:59 +0000)
committerishmal <ishmal@users.sourceforge.net>
Sun, 8 Oct 2006 03:59:41 +0000 (03:59 +0000)
src/extension/internal/cairo-render-context.cpp

index a6c24c6c6d972288a97fbfaefc87f36e867de636..4ade7fbaebf912521af39e947d35394d787a3b31 100644 (file)
 #include <cairo-ps.h>
 #endif
 
+
+#ifndef PANGO_ENABLE_BACKEND
 #include <cairo-ft.h>
+#endif
 
 #include <pango/pangofc-fontmap.h>
 
@@ -1259,6 +1262,8 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix
     
     cairo_save(_cr);
 
+#ifndef PANGO_ENABLE_BACKEND
+
     cairo_font_face_t *font_face = cairo_ft_font_face_create_for_pattern(fc_pattern);
     cairo_set_font_face(_cr, font_face);
     
@@ -1308,7 +1313,7 @@ CairoRenderContext::renderGlyphtext(PangoFont *font, NRMatrix const *font_matrix
     cairo_restore(_cr);
 
     cairo_font_face_destroy(font_face);
-    
+#endif    
     return true;
 }