FontsFolder Function

Used to access the Fonts folder.

Syntax

result = FontsFolder




Notes

Use the FontsFolder function to access the Fonts folder.

The FontsFolder function provides a way to access the Fonts folder that will work under different language systems, and will continue to work if the operating system is reorganized.

The SpecialFolder module provides access to many other special folders managed by the OS.

Windows

On Windows, FontsFolder returns a reference to the Windows\Fonts directory.

Macintosh

On Macintosh, FontsFolder returns a reference to the System/Library/Fonts directory.

Linux

On Linux, FontsFolder returns Nil.


Examples

This example places all the names of the items in the Fonts folder in a ListBox.

Dim i as Integer
Dim f as FolderItem
f=FontsFolder
For i=1 to f.count
 ListBox1.addrow f.item(i).name
Next

See Also

ApplicationSupportFolder, DesktopFolder, Font, FontCount, PreferencesFolder, StartupItemsFolder, SystemFolder, TemporaryFolder, TrashFolder, SpecialFolder functions.