Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XDrawString16(3X) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateGC(3X)

XDrawImageString(3X)

XDrawText(3X)

XLoadFont(3X)




XDrawString(3X) XDrawString(3X)
NAME XDrawString, XDrawString16 - draw text characters SYNOPSIS XDrawString (display, d, gc, x, y, string, length) Display *display; Drawable d; GC gc; int x,y; char *string; int length; XDrawString16 (display, d, gc, x, y, string, length) Display *display; Drawable d; GC gc; int x,y; XChar2b* string; int length; DESCRIPTION The XDrawString and XDrawString16 functions draw 8-bit and 16-bit text characters in the specified drawable. Each character image, as defined by the font in the graphic context is treated as an additional mask for a fill opera- tion 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 XDrawString16, each byte is used as a byte2 with a byte1 of 0. Both functions use these graphic context components: func- tion, plane-mask, fill-style, font, subwindow-mode, clip-x- origin, clip-y-origin, and clip-mask. They also use these mode-dependent graphic context components: foreground, back- ground, tile, stipple, tile-stipple-x-origin, and tile- stipple-y-origin. Arguments These functions accept the following arguments: d Specifies the drawable. display Specifies the connection to the X server. gc Specifies the graphic context. length Specifies the number of characters in the string ar- gument. string Specifies the character string. November, 1990 1



XDrawString(3X) XDrawString(3X)
x, y Specify the x and y coordinates. ERRORS BadDrawable A value for a Drawable argument does not name a de- fined window or pixel map. BadGC A value for a GC argument does not name a defined graphic context. BadMatch An InputOnly window is used as a drawable; or, an argument or pair of arguments has the correct type and range but fails to match in some other required way. XDrawString and XDrawString16 can generate BadDrawable, BadGC, and BadMatch errors. SEE ALSO XCreateGC(3X), XDrawImageString(3X), XDrawText(3X), XLoadFont(3X)
Xlib - C Language Interface
2 November, 1990

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026