Skip to content

Commit 31ccd1d

Browse files
committed
Fix issues related to 'bad' version of OpenSans
1 parent 6849908 commit 31ccd1d

36 files changed

Lines changed: 74 additions & 68 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,16 @@ public void CanRotateOutlineFont_Issue175<TPixel>(
494494
}
495495

496496
[Theory]
497-
[WithSolidFilledImages(500, 200, nameof(Color.White), PixelTypes.Rgba32, 32)]
498-
[WithSolidFilledImages(500, 200, nameof(Color.White), PixelTypes.Rgba32, 40)]
497+
[WithSolidFilledImages(500, 200, nameof(Color.Black), PixelTypes.Rgba32, 32)]
498+
[WithSolidFilledImages(500, 200, nameof(Color.Black), PixelTypes.Rgba32, 40)]
499499
public void DrawRichTextWithMixOfPensAndBrushes<TPixel>(
500500
TestImageProvider<TPixel> provider,
501501
int fontSize)
502502
where TPixel : unmanaged, IPixel<TPixel>
503503
{
504504
Font font = CreateFont(TestFonts.OpenSans, fontSize);
505505
Font font2 = CreateFont(TestFonts.OpenSans, fontSize * 1.5f);
506-
const string text = "The quick brown fox jumps over the lazy log.";
506+
const string text = "The quick brown fox jumps over the lazy dog";
507507

508508
TextDrawingOptions textOptions = new(font)
509509
{
@@ -543,7 +543,7 @@ public void DrawRichTextWithMixOfPensAndBrushes<TPixel>(
543543
}
544544
};
545545
provider.RunValidatingProcessorTest(
546-
x => x.DrawText(textOptions, text, Color.Black),
546+
x => x.DrawText(textOptions, text, Color.White),
547547
$"RichText-F({fontSize})",
548548
TextDrawingComparer,
549549
appendPixelTypeToFileName: false,
-93.1 KB
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)