mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Helper] Remove font sanity check as it is insufficient, and old format.
This commit is contained in:
parent
d4814b1f94
commit
addfc1d367
1 changed files with 0 additions and 17 deletions
|
@ -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: <b>%s</b> at size <b>%d</b>\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;
|
||||
|
|
Loading…
Reference in a new issue