


XSetFont(3X11)						       XSetFont(3X11)
X11R5									X11R5



NAME
  XSetFont - GC	convenience routines

SYNTAX
  XSetFont(_d_i_s_p_l_a_y, _g_c,	_f_o_n_t)
	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





















