mirror of
https://github.com/cy384/ssheven.git
synced 2026-05-15 06:05:53 -06:00
fix character width calculation
This commit is contained in:
parent
79e05b3847
commit
f0485c46f6
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue