You can use the FontName and FontSize properties to specify the font and point size respectively for text in the following situations:
Setting
The FontName property setting is the name of the font that the text is displayed in.
The FontSize property uses the following settings.
Setting | Description |
---|---|
8 | (Default for all reports and controls except command buttons) The text is 8-point type. |
10 | (Default for command buttons) The text is 10-point type. |
Other sizes | The text is the indicated size. |
For controls on forms and reports, you can set these properties by using the property sheet, a macro, or Visual Basic.
You can also set these properties by clicking the Font box and the Font Size box on the Formatting (Form/Report) toolbar.
You can set the default for these properties by using a control's default control style or the DefaultControl method in Visual Basic.
For reports, you can set these properties only in an event procedure or in a macro specified by the OnPrint event property setting.
In Visual Basic, you set the FontName property by using a string expression that is the name of the desired font and you set the FontSize property by using a numeric expression equal to the desired size of the font. The setting for the FontSize property can be between 1 and 127, inclusive.
Remarks
Font availability depends on your system and printer. If you select a font that your system can't display or that isn't installed, Windows substitutes a similar font.