1XmbDrawText(3)                  XLIB FUNCTIONS                  XmbDrawText(3)
2
3
4

NAME

6       XmbDrawText, XwcDrawText, Xutf8DrawText - draw text using multiple font
7       sets
8

SYNTAX

10       void XmbDrawText(Display *display, Drawable d, GC gc, int x, int y,
11              XmbTextItem *items, int nitems);
12
13       void XwcDrawText(Display *display, Drawable d, GC gc, int x, int y,
14              XwcTextItem *items, int nitems);
15
16       void Xutf8DrawText(Display *display, Drawable d, GC gc, int x, int y,
17              XmbTextItem *items, int nitems);
18

ARGUMENTS

20       d         Specifies the drawable.
21
22       display   Specifies the connection to the X server.
23
24       gc        Specifies the GC.
25
26       items     Specifies an array of text items.
27
28       nitems    Specifies the number of text items in the array.
29
30       x
31       y         Specify the x and y coordinates.
32

DESCRIPTION

34       The XmbDrawText, XwcDrawText and Xutf8DrawText functions allow complex
35       spacing and font set shifts between text strings.  Each text item is
36       processed in turn, with the origin of a text element advanced in the
37       primary draw direction by the escapement of the previous text item.  A
38       text item delta specifies an additional escapement of the text item
39       drawing origin in the primary draw direction.  A font_set member other
40       than None in an item causes the font set to be used for this and subse‐
41       quent text items in the text_items list.  Leading text items with a
42       font_set member set to None will not be drawn.
43
44       XmbDrawText, XwcDrawText and Xutf8DrawText do not perform any context-
45       dependent rendering between text segments.  Clients may compute the
46       drawing metrics by passing each text segment to XmbTextExtents, XwcTex‐
47       tExtents, Xutf8TextExtents or XmbTextPerCharExtents, XwcTextPerCharEx‐
48       tents.  Xutf8TextPerCharExtents.  When the XFontSet has missing
49       charsets, each unavailable character is drawn with the default string
50       returned by XCreateFontSet.  The behavior for an invalid codepoint is
51       undefined.
52
53       The function Xutf8DrawText is an extension introduced by The XFree86
54       Project, Inc. in their 4.0.2 release. Its presence is indicated by the
55       macro X_HAVE_UTF8_STRING.
56

STRUCTURES

58       The XmbTextItem structure contains:
59       typedef struct {
60               char *chars;    /* pointer to string */
61               int nchars;     /* number of bytes */
62               int delta;      /* pixel delta between strings */
63               XFontSet font_set;      /* fonts, None means don't change */
64       } XmbTextItem;
65The XwcTextItem structure contains:
66typedef struct {
67        wchar_t *chars; /* pointer to wide char string */
68        int nchars;     /* number of wide characters */
69        int delta;      /* pixel delta between strings */
70        XFontSet font_set;      /* fonts, None means don't change */
71} XwcTextItem;
72

SEE ALSO

74       XDrawImageString(3), XDrawString(3), XDrawText(3), XmbDrawIm‐
75       ageString(3), XmbDrawString(3)
76       Xlib - C Language X Interface
77
78
79
80X Version 11                     libX11 1.6.7                   XmbDrawText(3)
Impressum