You use the FontWeight property to specify the line width that Windows uses to display and print characters in a control.
Setting
The FontWeight property uses the following settings.
Setting | Visual Basic |
---|---|
Thin | 100 |
Extra Light | 200 |
Light | 300 |
Normal | 400 |
Medium | 500 |
Semi-bold | 600 |
Bold | 700 |
Extra Bold | 800 |
Heavy | 900 |
You can set this property by using the control's property sheet, a macro, or Visual Basic. You can also click Bold on the Formatting (Form/Report) toolbar. This sets the FontWeight property to Bold (700).
You can set the default for this property by using a control's default control style or the DefaultControl method in Visual Basic.
Remarks
A font's appearance on screen and in print may differ, depending on your computer and printer. For example, a FontWeight property setting of Thin may look identical to Normal on screen but appear lighter when printed.
The FontBold property, which is available only in Visual Basic and macros, can also be used to set the line width for a control's or report's text to bold. The FontBold property gives you a quick way to make text bold; the FontWeight property gives you finer control over the line width setting for text. The following table shows the relationship between these properties' settings.
If | Then |
---|---|
FontBold = False (0) | FontWeight = Normal (400) |
FontBold = True (–1) | FontWeight = Bold (700) |
FontWeight < 700 | FontBold = False |
FontWeight > = 700 | FontBold = True |