Action:
|
Sets a text entity's location.
|
|
Filename:
|
kern/kern_scm/text_scm.cxx
|
|
Syntax:
|
(text:set-location text-entity location)
|
|
Arg Types:
|
text-entity
|
text
|
|
location
|
position
|
|
Returns:
|
text
|
|
Description:
|
This extension sets the point of origin (location) for a
text-entity. The origin is located at the left edge of the left-most (leading) character in the string, at the baseline on which the character sits.
|
|
|
text-entity specifies a text entity.
|
|
|
location specifies the origin for the text entity.
|
|
Example:
|
; text:set-location
|
|
; Create a text entity.
|
|
(define words (text
|
|
|
(position 0 0 0) "Hello World."
|
|
|
"times-medium-r-normal" 30))
|
|
;; words
|
|
; Set the location of the text entity.
|
|
(define location (text:set-location words
|
|
|
(position 50 -20 10)))
|
|
;; location
|