Skip to content

Commit 81385ac

Browse files
Add fix
1 parent ad76bcc commit 81385ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ImageSharp.Drawing/Processing/Processors/Text/DrawTextProcessor{TPixel}.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,11 @@ public void EndGlyph()
325325
{
326326
IPath path = this.builder.Build();
327327

328+
if (path.Bounds.Equals(RectangleF.Empty))
329+
{
330+
return;
331+
}
332+
328333
// if we are using the fonts color layers we ignore the request to draw an outline only
329334
// cause that wont really work and instead force drawing with fill with the requested color
330335
// if color fonts disabled then this.currentColor will always be null

0 commit comments

Comments
 (0)