This documentation is for the old version. Go to the latest Graphics Mill docs

Font Methods

The Font type exposes the following members.

Methods

Name Description
Public method {dtor}

Enables using delete operator in C++ applications. It is strongly not recommended to use it directly.

Public method Clone

Creates a full copy of this Font object.

Public method Static member CreateSpecificFont

Returns a font with the requested name.

Public method Dispose

Releases all resources used by this Font.

(Overrides LockableObject.Dispose().)
Public method Equals (Inherited from Object.)
Public method GetA

Returns A spacing from ABC metric for given character.

Public method GetB

Returns B spacing from ABC metric for given character.

Public method GetBlackBox Overloaded.

Returns a rectangle that describes the character or string black box.

Public method GetC

Returns C spacing from ABC metric for given character.

Public method GetCharacterPositions

Returns an array of horizontal positions of each character in given text string.

Public method GetHashCode (Inherited from Object.)
Public method GetKerning

Returns kerning value for given pair of characters.

Public method GetType (Inherited from Object.)
Public method HorizontalPixelsToUnits

Converts horizontal value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method HorizontalUnitsToPixels

Converts horizontal value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)
Public method Lock

Locks the object.

(Inherited from LockableObject.)
Public method MeasureFormattedText Overloaded.

Gets extent of the given formatted text (both width and height) when it will be drawn with the GdiGraphics.DrawFormattedText method.

Public method MeasureString

Gets the extent (both width and height) of the string draw by the GdiGraphics.DrawString method.

Public method MeasureText Overloaded.

Gets given text extent (both width and height) when it will be drawn with the GdiGraphics.DrawText method.

Protected method MemberwiseClone (Inherited from Object.)
Public method ToGdiplusFont

Converts the font to the System.Drawing.Font class.

Public method ToString (Inherited from Object.)
Public method Unlock

Unlocks the object previously locked with method Lock().

(Inherited from LockableObject.)
Public method VerticalPixelsToUnits

Converts vertical value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method VerticalUnitsToPixels

Converts vertical value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)

Operators

Name Description
Public operator Static member Implicit Overloaded.

Casts Aurigma.GraphicsMill.Drawing.Font class instance to System.Drawing.Font or vice versa.

See Also

Reference