4D v13.4FONT LIST |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
FONT LIST
|
FONT LIST ( fontes {; *} ) | ||||||||
Parâmetro | Tipo | Descrição | ||||||
fontes | Array texto |
![]() |
Array of font names | |||||
* | Operador |
![]() |
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.
Em um formulário, você quer obter uma lista para baixo que mostre as fontes disponíveis no sistema. O método da lista para baixo é a seguinte:
Case of
:(Form event=On Load)
ARRAY TEXT(asFonte;0)
FONT LIST(asFonte)
` ...
End case
Produto: 4D
Tema: Ambiente de Sistema
Número
460
Criado por: 4D v6
Modificado: 4D v12.1
FONT
Font name
Font number
OBJECT SET STYLED TEXT ATTRIBUTES
police***