diff options
Diffstat (limited to 'man/XDrawText.man')
-rw-r--r-- | man/XDrawText.man | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/man/XDrawText.man b/man/XDrawText.man index 5666cea5..66fad216 100644 --- a/man/XDrawText.man +++ b/man/XDrawText.man @@ -109,15 +109,15 @@ of the specified drawable and define the origin of the first character. .SH DESCRIPTION The -.ZN XDrawText16 +.B XDrawText16 function is similar to -.ZN XDrawText +.B XDrawText except that it uses 2-byte or 16-bit characters. Both functions allow complex spacing and font shifts between counted strings. .LP Each text item is processed in turn. A font member other than -.ZN None +.B None in an item causes the font to be stored in the GC and used for subsequent text. A text element delta specifies an additional change @@ -128,12 +128,12 @@ 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. If a text item generates a -.ZN BadFont +.B BadFont error, the previous text items may have been drawn. .LP For fonts defined with linear indexing rather than 2-byte matrix indexing, each -.ZN XChar2b +.B XChar2b structure is interpreted as a 16-bit number with byte1 as the most significant byte. .LP @@ -144,21 +144,21 @@ They also use these GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. .LP -.ZN XDrawText +.B XDrawText and -.ZN XDrawText16 +.B XDrawText16 can generate -.ZN BadDrawable , -.ZN BadFont , -.ZN BadGC , +.BR BadDrawable , +.BR BadFont , +.BR BadGC , and -.ZN BadMatch +.B BadMatch errors. .SH STRUCTURES The -.ZN XTextItem +.B XTextItem and -.ZN XTextItem16 +.B XTextItem16 structures contain: .LP .Ds 0 @@ -180,7 +180,7 @@ typedef struct { .De .LP If the font member is not -.ZN None , +.BR None , the font is changed before printing and also is stored in the GC. If an error was generated during text drawing, the previous items may have been drawn. @@ -188,33 +188,33 @@ The baseline of the characters are drawn starting at the x and y coordinates that you pass in the text drawing functions. .LP For example, consider the background rectangle drawn by -.ZN XDrawImageString . +.BR XDrawImageString . If you want the upper-left corner of the background rectangle to be at pixel coordinate (x,y), pass the (x,y + ascent) as the baseline origin coordinates to the text functions. The ascent is the font ascent, as given in the -.ZN XFontStruct +.B XFontStruct structure. If you want the lower-left corner of the background rectangle to be at pixel coordinate (x,y), pass the (x,y \- descent + 1) as the baseline origin coordinates to the text functions. The descent is the font descent, as given in the -.ZN XFontStruct +.B XFontStruct structure. .SH DIAGNOSTICS .TP 1i -.ZN BadDrawable +.B BadDrawable A value for a Drawable argument does not name a defined Window or Pixmap. .TP 1i -.ZN BadFont +.B BadFont A value for a Font or GContext argument does not name a defined Font. .TP 1i -.ZN BadGC +.B BadGC A value for a GContext argument does not name a defined GContext. .TP 1i -.ZN BadMatch +.B BadMatch An -.ZN InputOnly +.B InputOnly window is used as a Drawable. .SH "SEE ALSO" XDrawImageString(__libmansuffix__), |