XSetFont(3x11) XLIB FUNCTIONS XSetFont(3x11)NAMEXSetFont - GC convenience routines
SYNTAX
cc [ flag... ] file... -lX11 [ library... ]
int XSetFont(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 ALSOXCreateGC(3x11), XQueryBestSize(3x11), XSetArcMode(3x11), XSetClipOri‐
gin(3x11), XSetFillStyle(3x11), XSetLineAttributes(3x11), XSet‐
State(3x11), XSetTile(3x11)
Xlib - C Language X Interface
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌─────────────────────────────┬─────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├─────────────────────────────┼─────────────────────────────┤
│Availability │x11/library/libx11 │
├─────────────────────────────┼─────────────────────────────┤
│Interface Stability │Committed │
├─────────────────────────────┼─────────────────────────────┤
│MT-Level │See XInitThreads(3X11) │
└─────────────────────────────┴─────────────────────────────┘
X Version 11 libX11 1.3.5 XSetFont(3x11)