FontOps.$winlistfonts()

Function groupExecute on clientPlatform(s)
FontOpsNOAll

Syntax

FontOps.$winlistfonts(list)

Description

Populates the list with the window fonts installed on your system, and indicates whether or not they are truetype.

The list must contain two columns, the first character type, the second boolean. The function returns zero for success, less than zero for failure. Having built the list you can search and manipulate the list using the standard list functions and methods.

Example

Do
 
lFontList
.
$define
(
lFont
,
lTrueType
)

Do
 
FontOps
.
$winlistfonts
(
lFontList
)

# returns a list of windows fonts

 
Do
 
lst(
(
lFontList
,1,
lFont
)
 
Returns 
lFirstFont

# returns the first font in the list

 
Do
 
lst(
(
lFontList
,
lFontList
.
$linecount
,
lFont
)
 
Returns 
lLastFont

# returns the last font in the list