diff options
author | pommicket <pommicket@gmail.com> | 2023-07-16 15:49:34 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:02:27 -0400 |
commit | c4095353c5fc3712890cb5b7e78520105a23753a (patch) | |
tree | d1e0cb0308c8422c81493e055771cf3b68d46f58 /main.c | |
parent | 50692503702b9d419de99c97cff59a970627de01 (diff) |
variable width fonts seem to be working
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |