From addfc1d367b227bb28ccad7bdf23c0217f4b6125 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 7 Jan 2022 18:16:47 +0100 Subject: [PATCH] [Helper] Remove font sanity check as it is insufficient, and old format. --- source/helper.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/source/helper.c b/source/helper.c index a8b98979..0988807b 100644 --- a/source/helper.c +++ b/source/helper.c @@ -699,23 +699,6 @@ int config_sanity_check(void) { } } - if (config.menu_font) { - PangoFontDescription *pfd = - pango_font_description_from_string(config.menu_font); - const char *fam = pango_font_description_get_family(pfd); - int size = pango_font_description_get_size(pfd); - if (fam == NULL || size == 0) { - g_string_append_printf(msg, "Pango failed to parse font: '%s'\n", - config.menu_font); - g_string_append_printf(msg, - "Got font family: %s at size %d\n", - fam ? fam : "{unknown}", size); - config.menu_font = NULL; - found_error = TRUE; - } - pango_font_description_free(pfd); - } - if (g_strcmp0(config.monitor, "-3") == 0) { // On -3, set to location 1. config.location = 1;