Share via


Font Members

The following tables list the members exposed by the Font type.

Public Fields

Name Description
Public Field Static DefaultKerning Contains the default kerning for a particular font.

Public Properties

Name Description
Public Property Ascent Gets the ascent measurement for the current font, in pixels.
Public Property AverageWidth Gets the average width of the characters in the current font, in pixels.
Public Property Descent Gets the descent measurement for the current font, in pixels.
Public Property ExternalLeading Gets the external leading measurement for the current font, in pixels.
Public Property Height Gets the height of the current font, in pixels.
Public Property InternalLeading Gets the internal leading measurement for the current font, in pixels.
Public Property MaxWidth Gets the width of the widest character in the current font, in pixels.

Public Methods

Name Description
Public Method CharWidth Gets the width of the specified character, in pixels.
Public Method ComputeExtent Overloaded. Computes the width and height of a specified line of text.
Public Method ComputeTextInRect Overloaded. Computes the size of the rectangular area on the display device needed to render the specified text string.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

Font Class
Microsoft.SPOT Namespace