How to get the List of Fonts (Foxpro 6.0)

How to get the List of Fonts (Foxpro 6.0)

Post by Rick Bea » Sat, 15 May 2004 04:07:36


Dmitriy,
Check out AFONT() - it'll return an array with all the installed fonts on your system. For more information on each font, use the FONTMETRIC( ) Function. (Both are topics in the Help file.)

Rick
 
 
 

How to get the List of Fonts (Foxpro 6.0)

Post by Leem » Sat, 15 May 2004 06:29:22

Hi Dmitriy:

Take a look at this article:

128648 How to Create a List Box That Lists Available Fonts
http://www.yqcomputer.com/

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.yqcomputer.com/
Purchase VFP8 here:
http://www.yqcomputer.com/

Keep an eye on the product lifecycle for Visual FoxPro here:
http://www.yqcomputer.com/ ;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003

 
 
 

How to get the List of Fonts (Foxpro 6.0)

Post by sp » Sat, 15 May 2004 06:55:07

The following code snippet can be used to list the font names and a sample
text on that font:

*********************
=AFONT(FONTS)
FONTCNT = ALEN(FONTS)

FOR nCount = 1 TO FONTCNT
? Fonts(ncount)
?'ABCDEFGHIJKLMNOPQRSTUVWXYZ' FONT fonts(ncount), 10
ENDFOR
*********************

sp



rights.