System.FontCount

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aSystem.FontCount

New in 2019r2

Supported for all project types and targets.

Used to determine the number of fonts installed on the user’s computer.

Syntax

result=FontCount

Part Type Name
result Integer The number of fonts installed.

Notes

FontCount is useful when you need to build a list of available fonts or need to determine if a specific font is installed.

Examples

This example populates a top-level menu called FontMenu with the names of the installed fonts:

For i As Integer = 0 To System.FontCount - 1
FontMenu.AddMenu(New MenuItem(System.FontAt(i)))
Next

See Also

System.FontAt function.

Compatibility

All project types on all supported operating systems.