1XTextWidth(3) XLIB FUNCTIONS XTextWidth(3)
2
3
4
6 XTextWidth, XTextWidth16 - compute text width
7
9 int XTextWidth(XFontStruct *font_struct, char *string, int count);
10
11 int XTextWidth16(XFontStruct *font_struct, XChar2b *string, int count);
12
14 count Specifies the character count in the specified string.
15
16 font_struct
17 Specifies the font used for the width computation.
18
19 string Specifies the character string.
20
22 The XTextWidth and XTextWidth16 functions return the width of the spec‐
23 ified 8-bit or 2-byte character strings.
24
26 XLoadFont(3), XTextExtents(3)
27 Xlib - C Language X Interface
28
29
30
31X Version 11 libX11 1.3.4 XTextWidth(3)