FontOps.$winlistfonts()

Function group Execute on client Platform(s)
FontOps NO All

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,lFontReturns lFirstFont
# returns the first font in the list

Do lst(lFontList,lFontList.$linecount,lFontReturns lLastFont
# returns the last font in the list