text:location
List of: Scheme Extensions
Subjects: Text
Contents: Kernel

Action: Gets a text entity's location.

Filename: kern/kern_scm/text_scm.cxx

Syntax: (text:location text-entity)

Arg Types: text-entity text

Returns: position

Description: This extension returns the position of the point of origin of the 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.

Example: ; text:location

; Create a text entity.

(define words (text (position 5 10 15)


"Hello World"


"new century schoolbook-bold-i-normal" 20))

;; words

; Get the location of the text entity.

(text:location words)

;; #[position 5 10 15]
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0025.HTM