Font Default Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering2D.Fonts
Assembly: DeltaEngine.Rendering2D.Fonts (in DeltaEngine.Rendering2D.Fonts.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static Font Default { get; }

Property Value

Type: Font
Remarks

Tests: DeltaEngine.Rendering2D.Fonts.Tests.FontTextTests
Examples

8 unit tests call DeltaEngine.Rendering2D.Fonts.Font.Default
[Test, ApproveFirstFrameScreenshot]
public void FontDefaultsToVerdana12()
{
    new FontText(Font.Default, "Verdana12 font", Center);
}
[Test, ApproveFirstFrameScreenshot]
public void MultiLineTextLeftAligned()
{
    CreateBackground();
    new FontText(Font.Default, "Text\nleft\naligned", Center)
    {
        HorizontalAlignment = HorizontalAlignment.Left
    };
}
[Test, ApproveFirstFrameScreenshot]
public void MultiLineTextRightAligned()
{
    new FontText(Font.Default, "Text\nright\naligned", Center)
    {
        HorizontalAlignment = HorizontalAlignment.Right
    };
}
See Also