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

Font.EmHeight Property

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

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public ReadOnly Property EmHeight As Single
C#
public float EmHeight { get; }

Property Value

Em height of the font.

Remarks

This parameter means size of the glyphs in design units. Width and height of the glyph are always the same, that's why sometimes it is called em square.

Typically this size is divisible to 1024 (usually 1024 or 2048).

Examples

Visual Basic
Dim font As New Aurigma.GraphicsMill.Drawing.Font("Arial", 12)

Console.WriteLine(font.EmHeight)
C#
Aurigma.GraphicsMill.Drawing.Font font =
    new Aurigma.GraphicsMill.Drawing.Font("Arial", 12);

Console.WriteLine(font.EmHeight);

See Also

Reference