
Font
Font Methods
| Font() | Constructor for the Font class using a font name and point size |
| Font() | Constructor for the Font class using another Font object |
| IsValid() | Returns true if the Font object is valid |
| Name() | Returns the name of the Font |
| Size() | Returns the point size of the Font |
Derived Classes
None
See Also
Class Hierarchy, Window, Color
public method Font(string FontName, int PointSize, Display Target = null)
Parameters
FontName
Name of font (e.g. "courier")
PointSize
Point size for specified font
Target
Display object where font is created and used
Return Value
None
Description
Constructor for the Font class. The font is based on the name and the point size passed in. This Font object can then be attached to any window to control the appearance of text drawn in that window. The local display is used if Target is null.
Font Class
public method Font(Font FontRef)
Parameters
FontRef
Font to be copied for this new font
Return Value
None
Description
Constructor for the Font class. The new font uses the same font name and point size as the incoming Font object.
Font Class
public method<bool> IsValid()
Parameters
None
Return Value
Returns true if the font object is valid
Description
This method returns true if the font is valid (based on the specified font name and size.
Font Class
public method<string> Name()
Parameters
None
Return Value
Returns the font name
Description
This method returns the name of the font as specified in the constructor.
Font Class
public method<int> Size()
Parameters
None
Return Value
Returns point size for font
Description
This method returns the point size for the font as specified in the constructor.
Font Class