draw-text in dc<%>
Draws a text string at a specified point, using the current text font, and the current text foreground and background colors. For unrotated text, the specified point is used as the starting top-left point for drawing characters (e.g, if ``W'' is drawn, the point is roughly the location of the top-left pixel in the ``W''). Rotated text is rotated around this point.
See
get-text-extent for information on the size of the drawn text.
See also
set-text-foreground,
set-text-background, and
set-text-mode.
The current brush and current pen settings for the DC have no effect on how the text is drawn.
( -> void
send a-dc draw-text text x y big-chars? offset angle)
text : string
x : real number
y : real number
big-chars? = : boolean
#f
offset = : exact non-negative integer
0
angle = : real number0
Restrictions on the magnitude of
drawing coordinates are described with dc<%>.
The text string is drawn starting from the offset
character, and continuing until the end of text or the first
null character.
If big-chars? is #t, then text is interpreted as a
Unicode string instead of an ASCII string; however, Unicode strings
are not yet fully supported.
The string is rotated by angle radians counter-clockwise. If
angle is not zero, then the text is always drawn in transparent
mode (see
set-text-mode).