11.  Text Metrics and Text Drawing Functions  

(text-width font text format)

See XTextWidth, XTextWidth16. format indicates whether 8-bit or 16-bit text is used; it is either the symbol 1-byte or the symbol 2-byte. text is a vector of integers; the integers must not exceed the size indicated by the format.

(extents-lbearing font text format)
(extents-rbearing font text format)
(extents-width font text format)
(extents-ascent font text format)
(extents-descent font text format)

See XTextExtents, XTextExtents16. These functions are used to compute the overall metrics of an 8-bit or 16-bit character string. Each function returns an integer. For the format of text and format see text-width above.

(draw-image-text drawable gcontext x y text format)

See XDrawImageString, XDrawImageString16. See text-width above.

(draw-poly-text drawable gcontext x y text format)

See XDrawText, XDrawText16. See text-width above. text is a vector of integers with intermixed objects of type font.

(translate-text string)

Converts the string into a representation suitable as an argument to text-width, draw-image-text, or draw-poly-text (a vector of integers obtained by applying char->integer to the characters of the string argument).


Markup created by unroff 1.0,    September 24, 1996,    net@informatik.uni-bremen.de