From bd2977c5188450529b9cbceedd1293fd1fe6bc28 Mon Sep 17 00:00:00 2001 From: Zach Nagengast Date: Fri, 1 Dec 2023 22:56:59 -0800 Subject: [PATCH] Update src/PIL/ImageDraw.py Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com> --- src/PIL/ImageDraw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageDraw.py b/src/PIL/ImageDraw.py index 4d5919f2247..40eed46bcdf 100644 --- a/src/PIL/ImageDraw.py +++ b/src/PIL/ImageDraw.py @@ -543,7 +543,7 @@ def draw_text(ink, stroke_width=0, stroke_offset=None): # font.getmask2(mode="RGBA") returns color in RGB bands and mask in A # extract mask and set text alpha color, mask = mask, mask.getband(3) - ink_alpha = struct.pack("=i", ink)[3] + ink_alpha = struct.pack("i", ink)[3] color.fillband(3, ink_alpha) x, y = coord self.im.paste(color, (x, y, x + mask.size[0], y + mask.size[1]), mask)