DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 
X Version 11 (Release 5)

XSetFont(XS)


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 GContext.

See also

XCreateGC(XS), XQueryBestSize(XS), XSetArcMode(XS), XSetClipOrigin(XS), XSetFillStyle(XS), XSetLineAttributes(XS), XSetState(XS), XSetTile(XS)

Xlib - C Language X Interface
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003