 | 















  |  | FontList | METHOD | FONTLIST | | Description | FONTLIST returns a list of all the fonts on the system. | | | | | PARAM1 | A dynamic array specifying what font types to return <1> - Type of device to retrieve the fonts for | '0' or null | - Get both SCREEN and PRINTER | | '1' | - Get SCREEN fonts only | | '2' | - Get PRINTER fonts only |
<2> - `Show Only' specifier | '0' or null | - Show all fonts for the device | | '1' | - ANSI fonts only | | '2' | - TRUETYPE only | | '3' | - Fixed Pitch only | | '4' | - OEM fonts only | | '5' | - Scaleable Only |
<3> - Exclude flags - an @vm-delimited list of flags specifying what font types to exclude. | <0,1> | - TRUE$ to exclude OEM fonts | | <0,2> | - TRUE$ to exclude SYMBOL fonts |
| | PARAM2 | List of fonts installed on the system. This is returned as a series of @fm delimited rows each with the format: Font Type : @vm : Font Name Where 'Font Type' is a bitmask made of the following: | '1' | - RASTER_FONTTYPE | | '2' | - DEVICE_FONTTYPE | | '4' | - TRUETYPE_ FONTTYPE |
| | PARAM3 | n/a | | PARAM4 | n/a | | PARAM5 | n/a | | PARAM6 | n/a | | | | | Example: | * // Get a list of all TrueType Screen fonts that are NOT symbols
fontData = "" fontInfo = ""
fontData<ZZ16FL_DEVICE$> = ZZ16FL_DEV_SCREENONLY$
fontData<ZZ16FL_OPTIONS$> = ZZ16FL_OPT_TRUETYPEONLY$
fontData<ZZ16FL_EXCLUDE_FLAGS$,ZZ16FL_FLAG_NOOEMFONTS$> = FALSE$ fontData<ZZ16FL_EXCLUDE_FLAGS$,ZZ16FL_FLAG_NOSYMBOLFONTS$> = TRUE$
if zz_Utility_Dll( "FONTLIST", fontData, fontInfo, "", "", "", "", errorText ) then * fontInfo now contains the information list ... end else * Handle error - see errorText var end |
[top] 
|  | |  |  |