]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
label-freetype: Log font loading error
authorRay Strode <rstrode@redhat.com>
Thu, 28 Dec 2023 17:17:10 +0000 (12:17 -0500)
committerRay Strode <halfline@gmail.com>
Thu, 28 Dec 2023 17:31:48 +0000 (17:31 +0000)
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.

src/plugins/controls/label-freetype/plugin.c

index 02b6f899ab3a22e7cf57710f3e65ebef12419735..17cb134eeca55a319174d9d043326ec5a67a62aa 100644 (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;
         }