Namespace: DeltaEngine.Rendering2D.Fonts.Tests
Assembly: DeltaEngine.Rendering2D.Fonts.Tests (in DeltaEngine.Rendering2D.Fonts.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering2D.Fonts.Tests (in DeltaEngine.Rendering2D.Fonts.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void ClipTextHeight() { var lines = textWrapper.SplitTextIntoLines(ThreeLineText, new Size(60, fontDescription.PixelLineHeight * 2), true); Assert.AreEqual(2, lines.Count); Assert.AreEqual(Spaces, new string(lines[0].ToArray())); Assert.AreEqual(Spaces, new string(lines[1].ToArray())); }
See Also