summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-07-16 15:49:34 -0400
committerpommicket <pommicket@gmail.com>2023-07-19 19:02:27 -0400
commitc4095353c5fc3712890cb5b7e78520105a23753a (patch)
treed1e0cb0308c8422c81493e055771cf3b68d46f58 /main.c
parent50692503702b9d419de99c97cff59a970627de01 (diff)
variable width fonts seem to be working
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 9 insertions, 0 deletions
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;