|
|
1.1 root 1: #include "copyright.h"
2:
3: /* $Header: XLoadFont.c,v 11.6 87/09/11 08:04:52 toddb Exp $ */
4: /* Copyright Massachusetts Institute of Technology 1986 */
5:
6: #include "Xlibint.h"
7:
8: Font XLoadFont (dpy, name)
9: register Display *dpy;
10: char *name;
11: {
12: register long nbytes;
13: Font fid;
14: register xOpenFontReq *req;
15: LockDisplay(dpy);
16: GetReq(OpenFont, req);
17: nbytes = req->nbytes = strlen(name);
18: req->fid = fid = XAllocID(dpy);
19: req->length += (nbytes+3)>>2;
20: Data (dpy, name, nbytes);
21: UnlockDisplay(dpy);
22: SyncHandle();
23: return (fid);
24: /* can't return (req->fid) since request may have already been sent */
25: }
26:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.