From f0485c46f607ad38761867194aeffb6db36c36f0 Mon Sep 17 00:00:00 2001 From: cy384 Date: Sun, 6 Jun 2021 13:23:39 -0400 Subject: [PATCH] fix character width calculation --- ssheven-console.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ssheven-console.c b/ssheven-console.c index 7a38fe0..aec7e0d 100644 --- a/ssheven-console.c +++ b/ssheven-console.c @@ -781,7 +781,12 @@ void font_size_change() con.cell_height = fi.ascent + fi.descent + fi.leading + 1; font_offset = fi.descent; - con.cell_width = fi.widMax; + + // you'd think this would be the correct way to determine character size + // but no + //con.cell_width = fi.widMax; + + con.cell_width = CharWidth(' '); TextFont(save_font); TextSize(save_font_size);