Commit e8181138 authored by Matthias Clasen's avatar Matthias Clasen

utils: Don't use deprecated api

Port pango-viewer to use the new
pango_fc_font_map_set_default_substitute.
parent f36934d5
Pipeline #214890 passed with stages
in 1 minute
......@@ -51,7 +51,7 @@ pangoft2_view_create (const PangoViewer *klass G_GNUC_UNUSED)
fontmap = pango_ft2_font_map_new ();
pango_ft2_font_map_set_resolution (PANGO_FT2_FONT_MAP (fontmap), opt_dpi, opt_dpi);
pango_ft2_font_map_set_default_substitute (PANGO_FT2_FONT_MAP (fontmap), substitute_func, NULL, NULL);
pango_fc_font_map_set_default_substitute (PANGO_FC_FONT_MAP (fontmap), substitute_func, NULL, NULL);
return fontmap;
}
......
......@@ -51,8 +51,8 @@ pangoxft_view_create (const PangoViewer *klass)
XftInit (NULL);
pango_xft_set_default_substitute (instance->display, instance->screen,
default_substitute, NULL, NULL);
pango_fc_font_map_set_default_substitute (PANGO_FC_FONT_MAP (pango_xft_get_font_map (instance->display, instance->screen)),
default_substitute, NULL, NULL);
return instance;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment