We need the text-font modules to render fonts in wlterm. Therefore, load
all the font modules during startup before initializing the application.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
#include "conf.h"
#include "eloop.h"
#include "log.h"
#include "conf.h"
#include "eloop.h"
#include "log.h"
#include "wlt_main.h"
#include "wlt_terminal.h"
#include "wlt_theme.h"
#include "wlt_main.h"
#include "wlt_terminal.h"
#include "wlt_theme.h"
log_print_init("wlterm");
log_print_init("wlterm");
+ kmscon_font_load_all();
+
memset(&app, 0, sizeof(app));
ret = setup_app(&app);
if (ret)
memset(&app, 0, sizeof(app));
ret = setup_app(&app);
if (ret)
ev_eloop_run(app.eloop, -1);
destroy_app(&app);
ev_eloop_run(app.eloop, -1);
destroy_app(&app);
+ kmscon_font_unload_all();
conf_free(options, onum);
log_info("exiting");
return EXIT_SUCCESS;
conf_free(options, onum);
log_info("exiting");
return EXIT_SUCCESS;
+err_unload:
+ kmscon_font_unload_all();
err_out:
conf_free(options, onum);
log_err("cannot initialize wlterm, errno %d: %s", ret, strerror(-ret));
err_out:
conf_free(options, onum);
log_err("cannot initialize wlterm, errno %d: %s", ret, strerror(-ret));