| 4D Write v15WR FONTS TO ARRAY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Write v15
 WR FONTS TO ARRAY 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WR FONTS TO ARRAY ( fonts ) | ||||||||
| Parameter | Type | Description | ||||||
| fonts | String array |   | Receives array of available fonts | |||||
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.
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
	Product:  4D Write
	Theme:  WR Utilities
	Number:  
        89173
        
        
        
	
	Created:  4D Write 6
	
	
	
	
	
	
	
	
	4D Write Language ( 4D Write v15)
	
	
	
	
	
	
	
 Add a comment
Add a comment