4D v13.4

FONT LIST

Home

 
4D v13.4
FONT LIST

FONT LIST 


 

FONT LIST ( fonts {; *} ) 
Parameter Type   Description
fonts  Text array in Array of font names
Operator in Returns font names under Mac OS (same behavior as 4D < 12.1)

The FONT LIST command populates the string or text array fonts with the names of the fonts available on your system.

Starting with version 12.1 of 4D, the FONT LIST command populates the fonts array with the names of the font families under Mac OS. In previous 4D versions, the command returned the font names themselves. For example, "Arial", "Arial black" or "Arial narrow" (font families) are returned instead of "Arial bold", "Arial italic", "Arial narrow italic" (font names). This simplifies the programmed management of rich text areas, which use font families.

The optional * parameter, when it is passed, keeps the previous functioning of this command under Mac OS (font names returned).

Under Windows, the * parameter has no effect. The command still returns the font families as in previous 4D versions.

Note: Under Mac OS, if you use the result of this command with the OBJECT SET STYLED TEXT ATTRIBUTES, you must not pass the * parameter.

Example  

In a form, you want a drop-down list that displays a list of the fonts available on your system. The method of the drop-down list is as follows:

 Case of
    :(Form event=On Load)
       ARRAY TEXT(asFont;0)
       FONT LIST(asFont)
  ` ...
 
 End case

 
PROPERTIES 

Product: 4D
Theme: System Environment
Number: 460

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v6
Modified: 4D v12.1

 
SEE ALSO 

Font name
Font number
OBJECT SET FONT
OBJECT SET STYLED TEXT ATTRIBUTES

 
TAGS 

police***