All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

draw-character Function

Summary

Draws a character in a given graphics port.

Package

graphics-ports

Signature

draw-character port character x y &rest args &key block

Arguments
port
A graphics port.
character
A character.
A real number.
A real number.
args
graphics-state parameters passed as keyword arguments.
block
A boolean.
Description

The function draw-character draws the character character at (x y) on the port. The transform, foreground, background, operation, stipple, pattern, mask, mask-transform, font, text-mode and compositing-mode from port's graphics-state are all used, unless overridden in args.

(x y) specifies the leftmost point of the character's baseline.

block, if true, causes the character to be drawn in a character cell filled with the port's graphics-state background.

Notes

The graphics-state parameter operation is not supported for drawing text on Windows.

See also

graphics-state
13 Drawing - Graphics Ports


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:44