Skip to content

Commit 05fd9c7

Browse files
committed
Use local CreateFont method
1 parent 506b1a5 commit 05fd9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void DoesntThrowExceptionWhenOverlappingRightEdge_Issue688_2<TPixel>(Test
7272
{
7373
using (Image<TPixel> img = provider.GetImage())
7474
{
75-
Font font = SystemFonts.CreateFont("OpenSans-Regular.ttf", 39, FontStyle.Regular);
75+
Font font = CreateFont("OpenSans-Regular.ttf", 39);
7676
string text = new string('a', 10000); // exception
7777
// string text = "Hello"; // no exception
7878
Rgba32 color = Rgba32.Black;

0 commit comments

Comments
 (0)