libi3: Rework font to support multiple backends

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2011-11-14 21:39:03 -02:00
committed by Quentin Glidic
parent edd9007ebf
commit ec17a26b0e
4 changed files with 125 additions and 51 deletions

@ -394,7 +394,7 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
grab_all_keys(conn, false);
}
if (config.font.id == 0) {
if (config.font.type == FONT_TYPE_NONE) {
ELOG("You did not specify required configuration option \"font\"\n");
config.font = load_font("fixed", true);
set_font(&config.font);