Action:
|
Gets a text entity's font.
|
|
Filename:
|
kern/kern_scm/text_scm.cxx
|
|
Syntax:
|
(text:font text-entity)
|
|
Arg Types:
|
text-entity
|
text
|
|
Returns:
|
string
|
|
Description:
|
This extension returns the font name assigned to the
text-entity, which is enclosed in quotes. The font name is composed of foundry, the family, the weight, the slant, and the set-width. In X Windows, use the
xlsfonts tool to display a list of available fonts.
|
|
|
text-entity specifies a text entity.
|
|
Example:
|
; text:font
|
|
; Create a text entity.
|
|
(define words (text (position 5 10 15)
|
|
|
"Hello World"
|
|
|
"new century schoolbook-bold-i-normal" 20))
|
|
;; words
|
|
; Get the font value of the text entity.
|
|
(text:font words)
|
|
;; "new century schoolbook-bold-i-normal"
|