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:     }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 475
Valid CSS Valid XHTML 1.0 Strict