fix character width calculation

This commit is contained in:
cy384 2021-06-06 13:23:39 -04:00
parent 79e05b3847
commit f0485c46f6
1 changed files with 6 additions and 1 deletions

View File

@ -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);