From bd4d6e7453918842419ece33f378f94e0be4c9c9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 25 Sep 2012 15:54:43 -0700 Subject: [PATCH] cairo: Avoid deprecated pango_cairo_font_map_create_context(). Pango 1.30 that is in Debian "wheezy" has marked this function as deprecated. The replacement pango_font_map_create_context() was introduced in Pango 1.22, which was also in Debian "squeeze" (which had Pango 1.28), so it seems safe to switch without worrying about a Pango version check. --- src/output/cairo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/cairo.c b/src/output/cairo.c index b786733448..954ae30f54 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -322,7 +322,7 @@ xr_set_cairo (struct xr_driver *xr, cairo_t *cairo) cairo_set_line_width (xr->cairo, xr_to_pt (xr->line_width)); map = pango_cairo_font_map_get_default (); - context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (map)); + context = pango_font_map_create_context (map); if (xr_is_72dpi (cairo)) { /* Pango seems to always scale fonts according to the DPI specified -- 2.30.2