XSetFont(3X) — X Version 11
NAME
XSetFont − GC convience routines
SYNTAX
XSetFont(display, gc, font)
Display ∗display;
GC gc;
Font font;
ARGUMENTS
displaySpecifies the connection to the X server.
fontSpecifies the font ID.
gcSpecifies the graphics context.
DESCRIPTION
The XSetFont function sets the current font in the specified graphics context. .PN 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(3X), XQueryBestSize(3X), XSetArcMode(3X), XSetClipOrigin(3X), XSetFillStyle(3X), XSetLineAttributes(3X), XSetState(3X), XSetTile(3X)
Xlib − C Language X Interface
1 March 1988