KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to get the fonts available on the system
PRODUCT: 4D | VERSION: 2004.4 | PLATFORM: Mac & Win
Published On: September 29, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

You can get a list of fonts available on your system by using the command Font List. The said command populates a text or string array with the list of fonts. For instance, the code below will populate a drop-downlist object 'mfonts' with fonts available on your system:

If (Form event=On Load )
   ARRAY TEXT(mfonts;0)
   FONT LIST(mfonts)
End if