* Fill in some fields from some other fields that may have changed */
| 342 | * Fill in some fields from some other fields that may have changed |
| 343 | */ |
| 344 | static void |
| 345 | calc_font_sizes(tty_record *record) |
| 346 | { |
| 347 | FontInfo font_info; |
| 348 | |
| 349 | do_set_port_font(record); |
| 350 | |
| 351 | GetFontInfo(&font_info); |
| 352 | record->char_width = font_info.widMax; |
| 353 | record->ascent_height = font_info.ascent + font_info.leading; |
| 354 | record->row_height = record->ascent_height + font_info.descent; |
| 355 | } |
| 356 | |
| 357 | /* |
| 358 | * Allocate memory for the bitmap holding the tty window |
no test coverage detected