summaryrefslogtreecommitdiff
path: root/utils/viewer-pangoft2.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-18 15:33:27 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-18 15:33:27 -0400
commite8181138ab5b4403bee552e768d53a0674d881dd (patch)
tree8ccf747553a6114ec47b78981ec1ccc9ca7d2dda /utils/viewer-pangoft2.c
parentf36934d527a320f95643fae6caf3e4fb0b90f692 (diff)
downloadpango-e8181138ab5b4403bee552e768d53a0674d881dd.tar.gz
utils: Don't use deprecated api
Port pango-viewer to use the new pango_fc_font_map_set_default_substitute.
Diffstat (limited to 'utils/viewer-pangoft2.c')
-rw-r--r--utils/viewer-pangoft2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/viewer-pangoft2.c b/utils/viewer-pangoft2.c
index 87973c80..3a698b8e 100644
--- a/utils/viewer-pangoft2.c
+++ b/utils/viewer-pangoft2.c
@@ -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;
}