Index: rsvg-text.c
===================================================================
RCS file: /cvs/gnome/librsvg/rsvg-text.c,v
retrieving revision 1.64
diff -u -p -r1.64 rsvg-text.c
--- rsvg-text.c	3 May 2006 15:36:57 -0000	1.64
+++ rsvg-text.c	8 Jun 2006 03:08:36 -0000
@@ -478,10 +478,11 @@ rsvg_text_ft2_subst_func (FcPattern *pat
 static PangoContext *
 rsvg_text_get_pango_context (RsvgDrawingCtx *ctx)
 {
+	static PangoFT2FontMap *fontmap = NULL;
 	PangoContext    *context;
-	PangoFT2FontMap *fontmap;
 	
-	fontmap = PANGO_FT2_FONT_MAP (pango_ft2_font_map_new ());
+	if (!fontmap)
+		fontmap = PANGO_FT2_FONT_MAP (pango_ft2_font_map_new ());
 	
 	pango_ft2_font_map_set_resolution (fontmap, ctx->dpi_x, ctx->dpi_y);
 	
@@ -491,7 +492,6 @@ rsvg_text_get_pango_context (RsvgDrawing
 											   (GDestroyNotify) NULL);
 	
 	context = pango_ft2_font_map_create_context (fontmap);
-	g_object_unref (fontmap);
 	
 	return context;
 }
