Since Pango 1.31.1, the OpenType functions in Pango have been deprecated in favour of using HarfBuzz directly [1].
Build deprecation warnings [2] as follows (Ubuntu Wiley, PPA).
[1] https://git.gnome.org/browse/pango/commit/pango/?id=6d6c556e9c725a4a69a94dbe045463ea4b855e4a
[2] https://launchpadlibrarian.net/215345069/buildlog_ubuntu-wily-amd64.inkscape-trunk_1%3A0.91.0%2Bdevel%2B14319%2B59~ubuntu15.10.1_BUILDING.txt.gz
../../src/libnrtype/FontFactory.cpp: In member function 'font_instance* font_factory::Face(PangoFontDescription*, bool)':
../../src/libnrtype/FontFactory.cpp:682:29: warning: 'PangoOTInfo* pango_ot_info_get(FT_Face)' is deprecated [-Wdeprecated-declarations]
PangoOTInfo* info = pango_ot_info_get( res->theFace );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:257:14: note: declared here
PangoOTInfo *pango_ot_info_get (FT_Face face);
^
../../src/libnrtype/FontFactory.cpp:682:29: warning: 'PangoOTInfo* pango_ot_info_get(FT_Face)' is deprecated [-Wdeprecated-declarations]
PangoOTInfo* info = pango_ot_info_get( res->theFace );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:257:14: note: declared here
PangoOTInfo *pango_ot_info_get (FT_Face face);
^
../../src/libnrtype/FontFactory.cpp:682:61: warning: 'PangoOTInfo* pango_ot_info_get(FT_Face)' is deprecated [-Wdeprecated-declarations]
PangoOTInfo* info = pango_ot_info_get( res->theFace );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:257:14: note: declared here
PangoOTInfo *pango_ot_info_get (FT_Face face);
^
../../src/libnrtype/FontFactory.cpp:684:31: warning: 'PangoOTTag* pango_ot_info_list_scripts(PangoOTInfo*, PangoOTTableType)' is deprecated [-Wdeprecated-declarations]
PangoOTTag* scripts = pango_ot_info_list_scripts( info, PANGO_OT_TABLE_GSUB );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:281:13: note: declared here
PangoOTTag *pango_ot_info_list_scripts (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:684:31: warning: 'PangoOTTag* pango_ot_info_list_scripts(PangoOTInfo*, PangoOTTableType)' is deprecated [-Wdeprecated-declarations]
PangoOTTag* scripts = pango_ot_info_list_scripts( info, PANGO_OT_TABLE_GSUB );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:281:13: note: declared here
PangoOTTag *pango_ot_info_list_scripts (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:684:85: warning: 'PangoOTTag* pango_ot_info_list_scripts(PangoOTInfo*, PangoOTTableType)' is deprecated [-Wdeprecated-declarations]
PangoOTTag* scripts = pango_ot_info_list_scripts( info, PANGO_OT_TABLE_GSUB );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:281:13: note: declared here
PangoOTTag *pango_ot_info_list_scripts (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:690:17: warning: 'gboolean pango_ot_info_find_script(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_script( info, PANGO_OT_TABLE_GSUB, scripts[i], &script_index )) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:260:10: note: declared here
gboolean pango_ot_info_find_script (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:690:17: warning: 'gboolean pango_ot_info_find_script(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_script( info, PANGO_OT_TABLE_GSUB, scripts[i], &script_index )) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:260:10: note: declared here
gboolean pango_ot_info_find_script (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:690:97: warning: 'gboolean pango_ot_info_find_script(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_script( info, PANGO_OT_TABLE_GSUB, scripts[i], &script_index )) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:260:10: note: declared here
gboolean pango_ot_info_find_script (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:693:21: warning: 'PangoOTTag* pango_ot_info_list_languages(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_languages( info, PANGO_OT_TABLE_GSUB, script_index, NULL);
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:284:13: note: declared here
PangoOTTag *pango_ot_info_list_languages (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:693:21: warning: 'PangoOTTag* pango_ot_info_list_languages(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_languages( info, PANGO_OT_TABLE_GSUB, script_index, NULL);
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:284:13: note: declared here
PangoOTTag *pango_ot_info_list_languages (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:693:96: warning: passing NULL to non-pointer argument 4 of 'PangoOTTag* pango_ot_info_list_languages(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag)' [-Wconversion-null]
pango_ot_info_list_languages( info, PANGO_OT_TABLE_GSUB, script_index, NULL);
^
../../src/libnrtype/FontFactory.cpp:693:96: warning: 'PangoOTTag* pango_ot_info_list_languages(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag)' is deprecated [-Wdeprecated-declarations]
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:284:13: note: declared here
PangoOTTag *pango_ot_info_list_languages (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:701:25: warning: 'gboolean pango_ot_info_find_language(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag, guint*, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_language(info, PANGO_OT_TABLE_GSUB, script_index, languages[j], &language_index, NULL)) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:266:10: note: declared here
gboolean pango_ot_info_find_language (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:701:25: warning: 'gboolean pango_ot_info_find_language(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag, guint*, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_language(info, PANGO_OT_TABLE_GSUB, script_index, languages[j], &language_index, NULL)) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:266:10: note: declared here
gboolean pango_ot_info_find_language (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:701:129: warning: 'gboolean pango_ot_info_find_language(PangoOTInfo*, PangoOTTableType, guint, PangoOTTag, guint*, guint*)' is deprecated [-Wdeprecated-declarations]
if( pango_ot_info_find_language(info, PANGO_OT_TABLE_GSUB, script_index, languages[j], &language_index, NULL)) {
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:266:10: note: declared here
gboolean pango_ot_info_find_language (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:704:29: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, j );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:704:29: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, j );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:704:93: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, j );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:716:29: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:716:29: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:716:117: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, i, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:735:13: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, 0, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:735:13: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, 0, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
../../src/libnrtype/FontFactory.cpp:735:101: warning: 'PangoOTTag* pango_ot_info_list_features(PangoOTInfo*, PangoOTTableType, PangoOTTag, guint, guint)' is deprecated [-Wdeprecated-declarations]
pango_ot_info_list_features( info, PANGO_OT_TABLE_GSUB, 0, 0, PANGO_OT_DEFAULT_LANGUAGE );
^
In file included from ../../src/libnrtype/FontFactory.cpp:21:0:
/usr/include/pango-1.0/pango/pango-ot.h:289:13: note: declared here
PangoOTTag *pango_ot_info_list_features (PangoOTInfo *info,
^
Here's a migration commit for GIMP... should give us some good hints:
https:/ /git.gnome. org/browse/ gimp/commit/ ?h=gtk3- port&id= 33acc4b62b60107 484ae5f6f9b00f9 39af6a6fa0