From c4095353c5fc3712890cb5b7e78520105a23753a Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 16 Jul 2023 15:49:34 -0400 Subject: variable width fonts seem to be working --- main.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 4b16e88..371ddee 100644 --- a/main.c +++ b/main.c @@ -607,6 +607,15 @@ int main(int argc, char **argv) { ted_update_window_dimensions(ted); + + { + Settings *active_settings = ted_active_settings(ted); + // we don't properly handle variable-width fonts + text_font_set_force_monospace(ted->font, active_settings->force_monospace); + text_font_set_force_monospace(ted->font_bold, active_settings->force_monospace); + } + + SDL_Event event; while (SDL_PollEvent(&event)) { TextBuffer *buffer = ted->active_buffer; -- cgit v1.2.3