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

Font Properties

The Font type exposes the following members.

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