


XDrawString(3X11)					    XDrawString(3X11)
X11R5									X11R5



NAME
  XDrawString, XDrawString16 - draw text characters

SYNTAX
  XDrawString(_d_i_s_p_l_a_y, _d, _g_c, _x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
	Display	*_d_i_s_p_l_a_y;
	Drawable _d;
	GC _g_c;
	int _x, _y;
	char *_s_t_r_i_n_g;
	int _l_e_n_g_t_h;

  XDrawString16(_d_i_s_p_l_a_y, _d, _g_c,	_x, _y, _s_t_r_i_n_g, _l_e_n_g_t_h)
	Display	*_d_i_s_p_l_a_y;
	Drawable _d;
	GC _g_c;
	int _x, _y;
	XChar2b	*_s_t_r_i_n_g;
	int _l_e_n_g_t_h;

ARGUMENTS

  _d	    Specifies the drawable.

  _d_i_s_p_l_a_y   Specifies the connection to	the X server.

  _g_c	    Specifies the GC.

  _l_e_n_g_t_h    Specifies the number of characters in the string argument.

  _s_t_r_i_n_g    Specifies the character string.

  _x
  _y	    Specify the	x and y	coordinates, which are relative	to the origin
	    of the specified drawable and define the origin of the first
	    character.

DESCRIPTION
  Each character image,	as defined by the font in the GC, is treated as	an
  additional mask for a	fill operation on the drawable.	 The drawable is
  modified only	where the font character has a bit set to 1.  For fonts
  defined with 2-byte matrix indexing and used with _X_D_r_a_w_S_t_r_i_n_g_1_6, each	byte
  is used as a byte2 with a byte1 of zero.

  Both functions use these GC components: function, plane-mask,	fill-style,
  font,	subwindow-mode,	clip-x-origin, clip-y-origin, and clip-mask.  They
  also use these GC mode-dependent components: foreground, background, tile,
  stipple, tile-stipple-x-origin, and tile-stipple-y-origin.

  _X_D_r_a_w_S_t_r_i_n_g and _X_D_r_a_w_S_t_r_i_n_g_1_6	can generate _B_a_d_D_r_a_w_a_b_l_e, _B_a_d_G_C, and _B_a_d_M_a_t_c_h
  errors.

DIAGNOSTICS

  _B_a_d_D_r_a_w_a_b_l_e
	    A value for	a Drawable argument does not name a defined Window or
	    Pixmap.

  _B_a_d_G_C	    A value for	a GContext argument does not name a defined GContext.

  _B_a_d_M_a_t_c_h  An _I_n_p_u_t_O_n_l_y window	is used	as a Drawable.

  _B_a_d_M_a_t_c_h  Some argument or pair of arguments has the correct type and	range
	    but	fails to match in some other way required by the request.

SEE ALSO
  XDrawImageString(3X11), XDrawText(3X11), XLoadFont(3X11)
  _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e	delim off
























































