Functions List
Text
• text
The function text
creates text from the specified
string, insertion point and text height. If omitted, the insertion point will be
considered the UCS origin and the text height 1. For parameterizing the text string
use the
format
form.
Parameters:
string – String for text
p – Text insertion point
h – Text height
Syntax:
(text “string” p h)
Example:
> (text "This is a piece of text.")
#<text 0>
> (text "This is another piece of text." (xy 2 2) 5)
#<text 0>
> (text (format "How much is 1+2 ?: ~A" (+ 1 2))
(xy 2 2) 5)
#<text 0>
> (text (format "John asked: ~A" "\"What is your name?\"")
(xy 2 2) 5)
#<text 0>
• text-centered
The function text-centered
creates text from the specified
string, centered at an insertion point and text height. If omitted, the insertion point
will be considered the UCS origin and the text height 1. For parameterizing the text string
use the
format
form.
Parameters:
string – String for text
p – Text insertion point
h – Text height
Syntax:
(text-centered “string” p h)
Example:
> (text-centered "This is a piece of centered text.")
#<text 0>
> (text-centered "This is another piece of centered text."
(xy 2 2) 5)
#<text 0>
> (text-centered (format "How much is 1+2 ?: ~A" (+ 1 2))
(xy 2 2) 5)
#<text 0>
> (text-centered
(format "John asked: ~A" "\"What is your name?\"")
(xy 2 2) 5)
#<text 0>