font: Allow adding font to the config. In prep for border titles

v2: Give default font and make bar use it if no bar font
This commit is contained in:
crondog 2016-01-27 16:57:55 +11:00
parent baa958eaf2
commit 0ee5547406
4 changed files with 28 additions and 2 deletions

View file

@ -551,7 +551,7 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
break;
}
json_object_object_add(json, "status_command", json_object_new_string(bar->status_command));
json_object_object_add(json, "font", json_object_new_string(bar->font));
json_object_object_add(json, "font", json_object_new_string(bar->font ? bar->font : config->font));
if (bar->separator_symbol) {
json_object_object_add(json, "separator_symbol", json_object_new_string(bar->separator_symbol));
}