Partager via


FontName Property

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

Object.FontName[ = cName]

Return Value

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

Remarks

Applies To: CheckBox Control | Column Object | ComboBox Control | CommandButton Control | EditBox Control | Form Object | Grid Control | Header Object | Label Control (Visual FoxPro) | ListBox Control | OptionButton Control | Page Object | _SCREEN System Variable | Spinner Control | TextBox Control (Visual FoxPro)

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

Reference

FontBold, FontItalic, FontStrikethru, FontUnderline Properties

FontSize Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)