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

Font Members

The Font type exposes the following members.

Constructors

Name Description
Public method Font Overloaded.

Creates new Font class instance.

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.

Fields

Name Description
Public field Static member FontWeightBold

Bold weight. Always 700.

Public field Static member FontWeightDontCare

Default weight. Always 0.

Public field Static member FontWeightExtrabold

Extra bold weight. Always 800.

Public field Static member FontWeightExtraLight

Extra light weight. Always 200.

Public field Static member FontWeightHeavy

Heavy weight. Always 900.

Public field Static member FontWeightLight

Light weight. Always 300.

Public field Static member FontWeightMedium

Medium weight. Always 500.

Public field Static member FontWeightNormal

Normal weight. Always 400.

Public field Static member FontWeightSemibold

Semibold weight. Always 600.

Public field Static member FontWeightThin

Thin weight. Always 100.

Properties

Name Description
Public property Antialiased

Gets/sets value specifying if text should be antialiased.

Public property Ascent

Returns ascent of the current font.

Public property AverageCharWidth

Returns an average character width of the current font.

Public property Bold

Gets/sets value specifying if font is bold.

Public property ClearType

Gets/sets value specifying if to use ClearType antialiasing for fonts (optimized for LCD monitors).

Public property Descent

Returns descent of the current font.

Public property EmHeight

Returns em height of the font (also known as em square or em size).

Public property ExternalLeading

Returns external leading of the current font.

Public property GdiCharset

Gets/sets charset for displaying non-Unicode characters.

Public property HorizontalAlignment

Gets/sets horizontal text alignment, i.e. value specifying how to locate the text string relatively X-coordinate of the point of text output (which is retrieved to DrawString(String, Font, Pen, Brush, Int32, Int32) method).

Public property HorizontalResolution

Specifies horizontal resolution of the image (also known as DPI, dots per inch).

(Inherited from UnitConverterObject.)
Public property InternalLeading

Returns internal leading of the current font.

Public property IsDisposed (Inherited from LockableObject.)
Public property Italic

Gets/sets value specifying if font is italic.

Public property LineGap

Returns line gap of the current font.

Public property Locked

Indicates if the object has been locked.

(Inherited from LockableObject.)
Public property MaximumCharWidth

Returns the width of the widest character in the font.

Public property Name

Gets typeface name of the font.

Public property Size

Gets/sets font size.

Public property Strikeout

Gets/sets value specifying if font is stroke out.

Public property Timeout

Gets/sets value specifying maximum time for which object can be locked.

(Inherited from LockableObject.)
Public property Tracking

Gets/sets font tracking (also known as intercharacter spacing).

Public property Underline

Gets/sets value specifying if font is underlined.

Public property Unit

Gets/sets unit to convert from/to.

(Inherited from UnitConverterObject.)
Public property VerticalAlignment

Gets/sets vertical text alignment, i.e. value specifying how to locate the text string relatively Y-coordinate of the point of text output (which is retrieved to DrawString(String, Font, Pen, Brush, Int32, Int32) method).

Public property VerticalResolution

Specifies vertical resolution (also known as DPI, dots per inch).

(Inherited from UnitConverterObject.)
Public property Weight

Gets/sets a font weight.

See Also

Reference