| 693 | } |
| 694 | |
| 695 | void |
| 696 | load_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 */ |
| 719 | static void |
no test coverage detected