LispWorks CAPI Reference Manual > 2 GP Reference Entries

NextPrevUpTopContentsIndex

draw-string

Function
Summary

Draws a string with the baseline positioned at a given point.

Package

graphics-ports

Signature

draw-string port string x y &rest args &key start end block

Arguments

port

A graphics port.

string

A string.

x

A real number.

y

A real number.

start

A real number.

end

A real number.

block

A boolean.

args

General graphics port drawing arguments.

Description

Draws the string with the baseline starting at ( x y ). The transform , foreground , background , operation , stipple , pattern , mask , mask-x , mask-y and font from the port's graphics state (see make-graphics-state) are all used. start and end specify which elements of the string to draw. block, if non- nil , causes each character to be drawn in a character cell filled with the port's graphics state background .

By default, start is 0.

You can draw with the system highlight by setting Graphics State slots foreground :color_highlighttext and background :color_highlight .

Note: The Graphics State slot operation is not supported for drawing text on Windows.

See also

make-graphics-state


LispWorks CAPI Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex