4D v16.3FONT STYLE LIST |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
FONT STYLE LIST
FONT STYLE LIST
The FONT STYLE LIST command returns the list of font styles and the list of complete font names supported by the font family defined in the fontFamily parameter. This command allows you to design interfaces handling fonts and font styles, particularly in the context of 4D Write Pro areas (see 4D Write Pro Reference). In fontFamily, pass the name of the font family for which you want to know the supported font styles and names. In fontStyleList, you pass a text array to be filled with the list of font styles supported by the fontFamily. Styles are returned using their localized names (i.e. an "Italic" element will be returned as "Itálico" on a Spanish system), so that you can build a localized "Style" pop-up menu, for example. In fontNameList, you pass a text array to be filled with the complete list of font names supported by the fontFamily. Unlike the fontStyleList array, the fontNameList array returns non-localized values, i.e. font names based upon the system identification. Thus, font names will be independent from the system language. Elements of this array are strings intended to be used with the wk font 4D Write Pro attribute of the WP SET ATTRIBUTES command. Using this feature, 4D Write Pro documents can store font names and then be opened on machines using any system language without font issues. If the fontFamily is not found on the machine, arrays are returned empty. To get the list of font families available on the machine, use the FONT LIST command. You want to select styles of the "Verdana" font family (if available): ARRAY TEXT($aTfonts;0)
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D v15 R4 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||