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

Function load_boldfont

win/X11/winX.c:695–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695void
696load_boldfont(struct xwindow *wp, Widget w)
697{
698 Arg args[1];
699 XFontStruct *fs;
700 unsigned long ret;
701 char *fontname;
702 Display *dpy;
703
704 if (wp->boldfs)
705 return;
706
707 XtSetArg(args[0], nhStr(XtNfont), &fs);
708 XtGetValues(w, args, 1);
709
710 if (!XGetFontProperty(fs, XA_FONT, &ret))
711 return;
712
713 wp->boldfs_dpy = dpy = XtDisplay(w);
714 fontname = fontname_boldify(XGetAtomName(dpy, (Atom)ret));
715 wp->boldfs = XLoadQueryFont(dpy, fontname);
716}
717
718/* ARGSUSED */
719static void

Callers 2

HiliteFieldFunction · 0.85
menu_create_entriesFunction · 0.85

Calls 1

fontname_boldifyFunction · 0.85

Tested by

no test coverage detected