The properties defined in the CMDFont class are summarized in the following table. These properties must be set before the open method that invokes the dialog is called.
| Property | Description |
|---|---|
| ansiOnly | Specifies whether the dialog allows only fonts that use the Windows character set |
| fixedPitchOnly | Specifies whether the common Font dialog displays only fixed-pitch fonts |
| fontBold | Specifies whether the bold attribute is initially selected in the common Font dialog |
| fontItalic | Specifies whether the italic attribute is initially selected in the common Font dialog |
| fontName | Contains the font initially selected in the common Font dialog |
| fontSize | Contains the font size initially selected in the common Font dialog |
| fontStrikethru | Specifies whether the Strikethrough attribute is initially selected in the common Font dialog |
| fontUnderline | Specifies whether the Underline attribute is initially selected in the common Font dialog |
| forceFontExist | Specifies whether the dialog displays an error message box if the user selects a font or style that does not exist |
| maxSize | Contains the largest font size displayed in the common Font dialog Size list box |
| minSize | Contains the smallest font size displayed in the common Font dialog Size list box |
| noNameSelection | Specifies whether the Font combo box in the common Font dialog initially displays a font name |
| noSizeSelection | Specifies whether the Size combo box in the common Font dialog initially displays a font size |
| noStyleSelection | Specifies whether the Font style combo box in the common Font dialog initially displays a font style |
| printerDC | Contains the 32-bit Windows device context of the printer for use with the dialog |
| printerDC64 | Contains the 64-bit Windows device context of the printer for use with the dialog |
| printerFonts | Specifies whether the dialog lists only the fonts supported by the printer |
| scalableOnly | Specifies whether the dialog lists only the fonts that can be scaled |
| screenFonts | Specifies whether the dialog lists only the screen fonts supported by the system |
| showEffects | Specifies whether the dialog enables strikethrough, underline, and color effects |
| simulations | Specifies whether the dialog allows Graphic Device Interface (GDI) font simulations |
| textColor | Contains the color of the text displayed in the dialog Effects group box |
| trueTypeOnly | Specifies whether the dialog displays only true-type fonts for user selection |
| vectorFonts | Specifies whether the dialog includes vector-type fonts in the fonts list |
| wysiwyg | Specifies whether only fonts that are available both for display and on the printer can be selected |