Skip to main content

TcxCustomFontNameComboBoxProperties.FontTypes Property

Specifies the types of font displayed within the font name combo box.

Declaration

property FontTypes: TcxFontTypes read; write; default [cxftTTF, cxftRaster, cxftDevice, cxftFixed, cxftSymbol];

Property Value

Type
TcxFontTypes

Remarks

Use the FontTypes property if you wish to include/exclude specific types from displaying within the font name combo box. By default, all font types are enabled, including TTF, raster, device, fixed and symbol.

The list of available values is given below:

Option Effect
cxftTTF Enables and disables True Type fonts (e.g. Arial, Times New Roman, Courier).
cxftFixed Enables and disables fixed fonts (e.g. Terminal, FixedSys).
cxftSymbol Enables and disables symbol fonts (e.g. WebDings, Windings, etc.).
cxftRaster Enables and disables raster fonts (e.g. MS Sans Serif, Smallfonts, etc.).
cxftDevice Enables and disables device dependant fonts (e.g. fonts, supplied with a peripheral device – printer, scanner, fax, etc.).

The example below shows how to force the control to display only names of True Type Fonts:

cxFontNameComboBox1.Properties.FontTypes := [cxftTTF];

If you wish, for example, to exclude raster fonts from the list, use following code:

cxFontNameComboBox1.Properties.FontTypes := cxFontNameComboBox1.Properties.FontTypes - [cxftRaster];

The default value of the FontTypes property is [cxftTTF, cxftRaster, cxftDevice, cxftFixed, cxftSymbol].

See Also