pangox-compat 0.0.2 fails to build with pango 1.48.10
A user reported to MacPorts that pangox-compat 0.0.2 does not build, and the reason appears to be that it uses something that used to exist in pango 1.42.4 but no longer exists in pango 1.48.10 or 1.50.1:
pangox-fontmap.c:944:21: error: implicit declaration of function 'pango_config_key_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
char *files_str = pango_config_key_get ("PangoX/AliasFiles");
^
pangox.c:282:15: error: no member named 'find_shaper' in 'struct _PangoFontClass'
font_class->find_shaper = pango_x_font_find_shaper;
~~~~~~~~~~ ^
/opt/local/include/glib-2.0/glib/gmacros.h:990:38:: error: implicit declaration of function 'pango_font_metrics_new' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
metrics = pango_font_metrics_new ();
^
note: expanded from macro 'GLIB_DEPRECATED_MACRO_FOR'
#define GLIB_DEPRECATED_MACRO_FOR(f) _GLIB_GNUC_DO_PRAGMA(GCC warning #f)
^
Edited by Ryan Schmidt