Gambas Documentation - /comp/gb.qt4/fonts

/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