FontName Property

Specifies the name of the font used to display text. Available at design time and run time.

Object.FontName[ = cName]

Property Values

  • cName
    Specifies the name of the font. The default is Arial.

Remarks

The default FontSize property setting is 9 points. Available fonts vary according to your system configuration. Font-related properties can be set only to values for which fonts exist. At design time, a list of available fonts is displayed when you select the FontName property in the Properties window and click the down arrow to the right of the Property Settings box.

In general, change FontName before setting size and style attributes with the FontSize, FontBold, FontItalic, FontStrikethru, and FontUnderline properties.

See Also

FontBold Property | FontItalic Property | FontStrikethru Property | FontUnderline Property | FontSize Property

Applies To: CheckBox | Column | ComboBox | CommandButton | EditBox | Form | Grid | Header | Label | ListBox | OptionButton | Page | _SCREEN | Spinner | TextBox