|
|
1.1 root 1: #include <X/mit-copyright.h>
2:
3: /* $Header: XOpenFont.c,v 10.4 86/02/01 15:37:37 tony Rel $ */
4: /* Copyright Massachusetts Institute of Technology 1985 */
5:
6: #include "XlibInternal.h"
7:
8: FontInfo *XOpenFont (name)
9: char *name;
10: {
11: Font font = XGetFont (name);
12: FontInfo *info;
13: if (!font)
14: return (NULL);
15: info = (FontInfo *) malloc (sizeof (FontInfo));
16: if (!info) {
17: errno = ENOMEM;
18: _XIOError (_XlibCurrentDisplay);
19: }
20: XQueryFont (font, info);
21: if (!info->fixedwidth)
22: info->widths = XFontWidths (font);
23: return (info);
24: }
25:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.