InstalledFontCollection class

The font families installed on the system.

InstalledFontCollection lists the families that every program can use. It inherits FamilyCount and Families from FontCollection and adds nothing. It is read-only: fonts are installed and removed through Windows, not through this class. The class mirrors the GDI+ InstalledFontCollection class.

A FontFamily or a Font that is created without a collection looks in the installed fonts, so this class is needed only to list them.

Creating

Syntax: collection = InstalledFontCollection( )

Syntax: collection = New InstalledFontCollection

Dim user As GdiPlusUser = GdiPlusUser()

Dim fonts As InstalledFontCollection = InstalledFontCollection()
Dim families() As FontFamily = fonts.Families
Debug.Print "Installed families: " & fonts.FamilyCount
Debug.Print "The first one: " & families(1).FamilyName

See Also