]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
label-freetype: fix monospace font fallback
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>
Sun, 27 Oct 2024 12:05:00 +0000 (13:05 +0100)
committerFerdinand Bachmann <ferdinand.bachmann@yrlf.at>
Sun, 27 Oct 2024 12:05:36 +0000 (13:05 +0100)
fix find_default_monospace_font_path() accidently returning the
non-monospace fallback font in some cases.

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

index be206207996864c33e60aed089d0fee7420edc13..8064519aa288752a61dbbb4b5e4fb5459bb32d50 100644 (file)
@@ -156,7 +156,7 @@ find_default_monospace_font_path (void)
         pclose (fp);
 
         if (strcmp (fc_match_out, "") == 0)
-                return FONT_FALLBACK;
+                return MONOSPACE_FONT_FALLBACK;
 
         return fc_match_out;
 }