From 026ae4579938b461ce0ce33b5fd1bfc3d0caee33 Mon Sep 17 00:00:00 2001 From: Turnerj Date: Thu, 12 Sep 2019 16:56:30 +0930 Subject: [PATCH] Use local CreateFont method --- tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs b/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs index 90740a4bb..a767a686e 100644 --- a/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs +++ b/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs @@ -72,7 +72,7 @@ namespace SixLabors.ImageSharp.Tests.Drawing.Text { using (Image img = provider.GetImage()) { - Font font = SystemFonts.CreateFont("OpenSans-Regular.ttf", 39, FontStyle.Regular); + Font font = CreateFont("OpenSans-Regular.ttf", 39); string text = new string('a', 10000); // exception // string text = "Hello"; // no exception Rgba32 color = Rgba32.Black;