# CdlCFConstants enumeration
{: .no_toc }

Options of the Font dialog, combined with **Or** in the [**Flags**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#flags) property.

The enumeration is declared inside the [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class. Its members are used without a qualifier, or with the name of the enumeration. The values are those of the Windows `CF_` constants of the `CHOOSEFONT` structure.

The class always adds the Windows flag that makes the dialog start from the font properties (`CF_INITTOLOGFONTSTRUCT`), and, when the [**HookEvents**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#hookevents) property is **True**, the one that switches on its hook procedure (`CF_ENABLEHOOK`). It removes both from **Flags** when the dialog closes, so they are not members. The dialog returns the `CdlCFNo...Sel` flags to say which parts the user did not select; [**ShowFont**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#showfont) then leaves the matching property as it was.

| Member | Value | Description |
|:-------|:------|:------------|
| **CdlCFScreenFonts**{: #CdlCFScreenFonts } | `&H1` | Lists the fonts that the screen supports. |
| **CdlCFPrinterFonts**{: #CdlCFPrinterFonts } | `&H2` | Lists the fonts that a printer supports. |
| **CdlCFHelpButton**{: #CdlCFHelpButton } | `&H4` | Shows a Help button. A click raises the [**Help**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#help) event, but only when the dialog has an owner window. |
| **CdlCFEffects**{: #CdlCFEffects } | `&H100` | Shows the **Strikeout** and **Underline** check boxes and the color list. Only with this flag does the class update [**FontStrikethru**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontstrikethru), [**FontUnderline**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontunderline) and [**Color**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#color). |
| **CdlCFApply**{: #CdlCFApply } | `&H200` | Shows an **Apply** button. A click raises the [**FontApply**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontapply) event, which needs [**HookEvents**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#hookevents) **True**. |
| **CdlCFScriptsOnly**{: #CdlCFScriptsOnly } | `&H400` | Lists the fonts of the non-OEM character sets, the Symbol set and the ANSI set. |
| **CdlCFNoVectorFonts**{: #CdlCFNoVectorFonts } | `&H800` | Does not allow vector fonts. |
| **CdlCFLimitSize**{: #CdlCFLimitSize } | `&H2000` | Limits the sizes to the range from [**Min**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#min) to [**Max**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#max) points. Without this flag the dialog ignores both properties. |
| **CdlCFFixedPitchOnly**{: #CdlCFFixedPitchOnly } | `&H4000` | Lists only fixed-pitch (monospaced) fonts. |
| **CdlCFForceFontExist**{: #CdlCFForceFontExist } | `&H10000` | The dialog shows an error message when the user enters a font or a style that does not exist. |
| **CdlCFScalableOnly**{: #CdlCFScalableOnly } | `&H20000` | Lists only scalable fonts, which include vector, TrueType and OpenType fonts. |
| **CdlCFTTOnly**{: #CdlCFTTOnly } | `&H40000` | Lists only TrueType fonts. |
| **CdlCFNoFaceSel**{: #CdlCFNoFaceSel } | `&H80000` | No font name is selected when the dialog opens. The dialog returns the flag when the user chose no name, and the class then leaves [**FontName**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontname) unchanged. |
| **CdlCFNoStyleSel**{: #CdlCFNoStyleSel } | `&H100000` | No style is selected when the dialog opens. The dialog returns the flag when the user chose no style, and the class then leaves [**FontWeight**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontweight) and [**FontItalic**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontitalic) unchanged. |
| **CdlCFNoSizeSel**{: #CdlCFNoSizeSel } | `&H200000` | No size is selected when the dialog opens. The dialog returns the flag when the user chose no size, and the class then leaves [**FontSize**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontsize) unchanged. |
| **CdlCFSelectScript**{: #CdlCFSelectScript } | `&H400000` | Lists only the fonts of the character set in [**FontCharset**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontcharset). The user cannot change the character set in the **Script** box. |
| **CdlCFNoScriptSel**{: #CdlCFNoScriptSel } | `&H800000` | Disables the **Script** box. The dialog returns the flag when the user chose no character set, and the class then leaves [**FontCharset**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontcharset) unchanged. |
| **CdlCFNoVertFonts**{: #CdlCFNoVertFonts } | `&H1000000` | Does not list the vertical fonts, those with a name that starts with `@`. |

## Used by

- [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class: [**Flags**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#flags) (for [**ShowFont**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#showfont)); the *Flags* parameter of the [**FontApply**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fontapply) event

## See Also

- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/Enumerations/index.md) -- all the enumerations of the package
- [CommonDialog](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class
