|
Description:
|
A
text is an entity that annotates the model in graphics windows and is always displayed parallel to the viewing plane. Transforming a text object's position of origin moves the text, but it does not change its real or perceived size.
text objects are saved and restored as part of the model.
|
|
|
A text object is a composite of a string, a position, a font, and a size. The position specifies the location of the string's first character (left edge, baseline the string sits on). Font specifies the typeface used. Size specifies the displayed size in points. Refer to the
text extension for more information.
|
|
|
Derivation:
|
text : entity : scheme-object
|
|
|
C++ Type:
|
TEXT_ENT
|
|
|
External Rep:
|
#[entity %d %d]
|
|
where the first integer is the entity ID,
|
|
and the second integer is the part ID.
|
|
|
Example:
|
; text (data type)
|
|
; Define and inquire a text object.
|
|
(define hi (text (position 0 0 0) "Hello world."
|
|
|
"times-medium-r-normal" 30))
|
|
;; hi
|
|
(text? hi)
|
|
;; #t
|
|
(text:font hi)
|
|
;; "times-medium-r-normal"
|
|
(text:size hi)
|
|
;; 30
|
|
(text:string hi)
|
|
;; "Hello world."
|