-
Jehan authored
pango_fc_font_lock_face() is deprecated since Pango 1.44. This may hopefully also fix #5922 as I completely changed the code where the CRITICAL happened. Yet I left g_return_val_if_fail() to check if the Harfbuzz font and FreeType face variables are not NULL (because looking at the code, it looks like these functions returning NULL actually means there is a bug in the code). Nevertheless if it turned out that there are non-bug cases where these could return NULL (for instance a broken font file?), then probably we should not use g_return_val_if_fail(), but instead address the data issue in a nicer way. Bumping harfbuzz dependency to 1.0.5 for hb_ft_font_set_funcs(). Without configuring the Harfbuzz font with it, hb_ft_font_get_face() always returns NULL. Note that it looks like hb_ft_font_lock_face() would actually be better, but this requires harfbuzz 2.6.5 from last April which is quite recent. So let's just use the get_face() variant for now.
7a50b094