NAME

XSetFont - GC convenience routines

SYNTAX

int XSetFont(Display *_d_i_s_p_l_a_y, GC _g_c, Font _f_o_n_t);

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server.
_f_o_n_t Specifies the font.
_g_c Specifies the GC.

DESCRIPTION

The _X_S_e_t_F_o_n_t function sets the current font in the specified GC.

_X_S_e_t_F_o_n_t can generate _B_a_d_A_l_l_o_c, _B_a_d_F_o_n_t, and _B_a_d_G_C errors.

DIAGNOSTICS

_B_a_d_A_l_l_o_c
The server failed to allocate the requested resource or server memory.
_B_a_d_F_o_n_t
A value for a Font or GContext argument does not name a defined Font.
_B_a_d_G_C
A value for a GContext argument does not name a defined GContext.

SEE ALSO

XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetLineAttributes(3X11), XSetState(3X11), XSetTile(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e