WR FONTS TO ARRAY
version 6.0
WR FONTS TO ARRAY (fonts)
Parameter | Type | Description | |
fonts | String array | Receives array of available fonts |
Description
The WR FONTS TO ARRAY command returns the list of available fonts in the fonts array. This list corresponds to the font drop-down list located in the Style palette.
fonts should be declared as a String or Text type array.
Example
You want to check if the fonts required for your templates are installed in the current system. The [Fonts] table stores the list of required fonts. In the On Startup Database Method, you can write:
ARRAY TEXT (aFonts;0)
WR FONTS TO ARRAY (aFonts)
ALL RECORDS([Fonts])
While(Not(End selection([Fonts])))
If (Find in array(aFonts;[Fonts]Name)=-1)
ALERT("The font "+[Fonts]Name+" is required, please install it.")
End if
NEXT RECORD([Fonts])
End while
See Also