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

Function mar_set_font

outdated/win/gem/wingem1.c:506–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504 }
505}
506void
507mar_set_font(int type, const char *font_name, int size)
508{
509 int id = 0;
510 /* MAR -- 17.Mar 2002 usual Gem behavior, use the Font-ID */
511 if (font_name && *font_name) {
512 id = atoi(font_name);
513 if (id <= 0) {
514 int i, tid;
515 char name[32];
516 for (i = fonts_loaded; --i >= 0;) {
517 tid = vqt_name(x_handle, i, name);
518 if (!stricmp(name, font_name)) {
519 id = tid;
520 break;
521 }
522 }
523 }
524 }
525 mar_set_fontbyid(type, id, size);
526}
527void
528rearrange_windows(void)
529{

Callers 2

Gem_preference_updateFunction · 0.85
mar_gem_initFunction · 0.85

Calls 1

mar_set_fontbyidFunction · 0.85

Tested by

no test coverage detected