FontDataTests GetGlyphsForMultilineText Method Delta Engine Documentation

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

public void GetGlyphsForMultilineText()
Examples

[Test, CloseAfterFirstFrame]
public void GetGlyphsForMultilineText()
{
    var fontData = new FontDescription(ContentLoader.Load<Font>("Verdana12").Data);
    fontData.Generate(" \n \n ", HorizontalAlignment.Center);
    Assert.AreEqual(3, fontData.Glyphs.Length);
}
See Also