home *** CD-ROM | disk | FTP | other *** search
- *****************************************************************
- * * 09/92 SHOWFONT.PRG *
- *****************************************************************
- * * Author's Name: Jeb Long *
- * * *
- * * Description: *
- * * This program illustrates how to display information *
- * * related to the number of installed fonts in a *
- * * Windows system. *
- *****************************************************************
- DECLARE Fonts[1]
- IF AFONT( Fonts )
- FontCnt = ALEN( Fonts )
- ? "The number of available fonts is:", FontCnt
- ? "Names of the Fonts:"
-
- FOR Ft = 1 TO FontCnt
- ? Fonts[Ft]
- DECLARE SizeFont[1]
- IF AFONT( SizeFont, Fonts[Ft] )
- IF SizeFont[1] = -1
- ?? " -- Font is scalable"
- ELSE
- FOR S = 1 TO ALEN( SizeFont )
- ?? SizeFont[S]
- ENDFOR
- ENDIF
- ENDIF
- RELEASE SizeFont
- ENDFOR
- ELSE
- ? "Unable to retrieve fonts."
- ENDIF
-
-