MCPcopy Create free account
hub / github.com/NetHack/NetHack / calc_font_sizes

Function calc_font_sizes

outdated/sys/mac/mactty.c:344–355  ·  view source on GitHub ↗

* Fill in some fields from some other fields that may have changed */

Source from the content-addressed store, hash-verified

342 * Fill in some fields from some other fields that may have changed
343 */
344static void
345calc_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

Callers 1

Calls 1

do_set_port_fontFunction · 0.85

Tested by

no test coverage detected