XSetFont(XS) X Version 11 (Release 5) 6 January 1993 XSetFont(XS) Name XSetFont - GC convenience routines Syntax XSetFont(display, gc, font) Display *display; GC gc; Font font; Arguments display Specifies the connection to the X server. font Specifies the font. gc Specifies the GC. Description The XSetFont function sets the current font in the specified GC. XSetFont can generate ``BadAlloc'', ``BadFont'', and ``BadGC'' errors. Diagnostics ``BadAlloc'' The server failed to allocate the requested resource or server memory. ``BadFont'' A value for a Font or GContext argument does not name a defined Font. ``BadGC'' A value for a GContext argument does not name a defined GCon- text. See also XCreateGC(XS), XQueryBestSize(XS), XSetArcMode(XS), XSetClipOrigin(XS), XSetFillStyle(XS), XSetLineAttributes(XS), XSetState(XS), XSetTile(XS) Xlib - C Language X Interface