comp • gb.qt4 • fonts

Fonts (gb.qt4)

This class is a virtual collection of the names of all font families installed on the system.

This class is static.
This class is
Enumerates the font families installed on the system.
statically enumerable
with the FOR EACH keyword.

Static properties

Static methods
Returns the number of font families installed on the system.
Count  
Return if a specific font family is available on the current system.
Exist  

To get more information about a specific font family, just create a Font object by providing the family name.

In this example we fill a ReadOnly ComboBox with a list of installed Fonts when a form opens.

Examples

Public Sub Form_Open()
  Dim fontName As String
  ComboBoxFonts.Clear()
  ComboBoxFonts.ReadOnly = True
  ' Fill ReadOnly ComboBox with a list of installed fonts
  For Each fontName In Fonts
    ComboBoxFonts.Add(fontName)
  Next
End