Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomFontNameComboBoxProperties.FontTypes Property

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

#Declaration

Delphi
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