mirror of https://github.com/cy384/ssheven.git
fix character width calculation
This commit is contained in:
parent
79e05b3847
commit
f0485c46f6
|
@ -781,7 +781,12 @@ void font_size_change()
|
||||||
|
|
||||||
con.cell_height = fi.ascent + fi.descent + fi.leading + 1;
|
con.cell_height = fi.ascent + fi.descent + fi.leading + 1;
|
||||||
font_offset = fi.descent;
|
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);
|
TextFont(save_font);
|
||||||
TextSize(save_font_size);
|
TextSize(save_font_size);
|
||||||
|
|
Loading…
Reference in New Issue