Skip to content

Commit

Permalink
fix character width calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
cy384 committed Jun 6, 2021
1 parent 79e05b3 commit f0485c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ssheven-console.c
Expand Up @@ -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);
Expand Down

0 comments on commit f0485c4

Please sign in to comment.