Applies to
Controls that can display text
Description
The FontFamily property sets the type style used for the text in the control.
When working in a painter, setting the font face name causes the correct font family to be selected.
Usage
In a painter
To set the font type style:
-
Select a font style from the FontFamily list box on the Font tab page of the control's Properties view.
To set the font type style of text objects in a graph control:
-
Display the Text tab page of the graph control's Properties view.
-
Select the desired text object from the Text Object list box.
-
Select a font style from the FontFamily list box.
In scripts
The FontFamily property takes a value of the FontFamily enumerated datatype. The following example sets the FontFamily for a static text control to Roman:
st_1.FontFamily = Roman!