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.
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