Font

Object List Next Object

Definition:

Font encapsulates all aspects of a Windows font definition. The fonts displayed within forms and controls are controlled by assigning their font references to Font objects.

Specialized Features:

The following table lists and briefly describes the properties and methods added by Font. There are no added events.


Properties Use to...


Bold Display the thicker version of a particular font.

FaceName Specify the name of the current font.

HFont Access the Windows handle for a particular font (Read only).

Italic Create text that is slanted.

Size Determine the point size of the current font.

Strikethru Create text with a line drawn through it.

Underline Draw a line beneath the specified text.


Methods Use to...


DetailedEdit Bring up a form for providing additional information when an object is double clicked in the Property Editor or a control on a form is double clicked while the Form Editor is on.

TextUnload Write a text representation of this object.

Copied Features:

Noneimages/Phx00010.gifthis is a top-level object.

Details:

Font encapsulates all the aspects of a Windows font: its facename, style, and size. Fonts are used within Phoenix to change the appearance of text displayed by Controls and Forms. When a control's Font reference is assigned to a particular font, that control will display text according to the properties of that font. Also, as the properties of the font change, the text in each control whose Font reference is assigned to that font will reflect the changing values. When the Font reference of a Form is assigned to a particular font, ALL the controls on the form that have Nothing as the value of their Font reference will display text according to the properties of that font. The Hfont property is useful for making certain Windows API calls.