4D v16.3FONT LIST |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
FONT LIST
FONT LIST
The FONT LIST command populates the fonts text array with the names of scalable fonts available on your system. The listType parameter lets you designate the type of font list you want to get. To do so, you can pass one of the following constants in the listType parameter, available in the "Font Type List" theme:
Under OS X, when you pass the optional * parameter, the command populates the fonts array with the names of the fonts themselves, and not with the names of the font families. The default operation simplifies programmed management of rich text areas, which use font families. If you pass the * parameter, font names, for example, "Arial bold", "Arial italic", "Arial narrow italic," are returned instead of families, such as "Arial", "Arial black" or "Arial narrow". Note: Under OS X, if you use the result of this command with ST SET ATTRIBUTES in a multi-style text area, you must not pass the * parameter (only font families are supported as Attribute font name). This limitation does not apply to 4D Write Pro areas, which accept either font or font family names. This command returns only scalable fonts. Using non-scalable fonts (i.e. bitmap fonts) to design interfaces is not recommended since they are based on an outdated technology and suffer from limitations regarding size variations. They are not supported in cutting-edge features of 4D such as 4D Write Pro areas . Under OS X, this principle has been in effect since OS X 10.4 (QuickDraw bitmap fonts are obsolete beginning with this version). Under Windows, this principle is applied beginning with 4D v15 R4. In order to help developers select only modern fonts for their interfaces, only "trueType" or "openType" scalable fonts are listed. For example, "ASI_Mono", "MS Sans Serif" and "System" fonts are no longer available. In addition, GDI names are also ignored; only DirectWrite font family names are supported. For example, "Arial Black" or "Segoe UI Black" font families are not in the list; only "Arial" and "Segoe" are returned. Compatibility notes for Windows:
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 You want to get a list of recent fonts: FONT LIST($arrFonts;Recent fonts)
See also
_o_Font name
|
PROPERTIES
Product: 4D HISTORY
Created: 4D v6 TAGS police ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||