label-freetype: Log font loading error

Right now if there's an error loading a font we quietly just
proceed.

This commit adds a debug log message saying what the error is.
This commit is contained in:
Ray Strode 2023-12-28 12:17:10 -05:00 committed by Ray Strode
parent d8fd8e222c
commit 8cd615f188

View file

@ -780,6 +780,8 @@ set_font_for_control (ply_label_plugin_control_t *label,
if (error) {
FT_Done_Face (label->face);
label->face = NULL;
ply_trace ("Could not load font, error %d", error);
return;
}