text:set-size
List of: Scheme Extensions
Subjects: Text
Contents: Kernel

Action: Sets a text entity's font size in points.

Filename: kern/kern_scm/text_scm.cxx

Syntax: (text:set-size text-entity size)

Arg Types: text-entity text

size integer

Returns: text

Description: This extension sets the size of a text-entity.


text-entity specifies a text entity.


size is an integer that specifies the size of the font in points. (Usually, business correspondence uses 10 or 12 point fonts.) If the exact size font cannot be found, the font nearest in size is used. When searching for a font, the size specified as part of font is discarded and replaced with the size specified in size.

Example: ; text:set-size

; Create a text entity.

(define words (text


(position 0 0 0) "Hello World."


"times-medium-r-normal" 30))

;; words

; Set the size of the text entity.

(define size (text:set-size words 10))

;; size
PDF/KERN/15SCR.PDF
HTM/DATA/KERN/KERN/15SCR/0028.HTM