NAME
XTextWidth, XTextWidth16 - compute text width
SYNTAX
int XTextWidth(XFontStruct *_f_o_n_t___s_t_r_u_c_t, char *_s_t_r_i_n_g,
int _c_o_u_n_t);
int XTextWidth16(XFontStruct *_f_o_n_t___s_t_r_u_c_t, XChar2b
*_s_t_r_i_n_g, int _c_o_u_n_t);
ARGUMENTS
-
_c_o_u_n_t
Specifies the character count in the specified string.
-
-
_f_o_n_t___s_t_r_u_c_t
Specifies the font used for the width computation.
-
-
_s_t_r_i_n_g
Specifies the character string.
-
DESCRIPTION
The
_X_T_e_x_t_W_i_d_t_h
and
_X_T_e_x_t_W_i_d_t_h_1_6
functions return the width of the specified 8-bit or 2-byte character strings.
SEE ALSO
XLoadFont(3X11),
XTextExtents(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e