diff --git a/PIL/ImageDraw.py b/PIL/ImageDraw.py index 9408dc8f5..efe840486 100644 --- a/PIL/ImageDraw.py +++ b/PIL/ImageDraw.py @@ -223,7 +223,6 @@ class ImageDraw(object): return self.multiline_text(xy, text, fill, font, anchor, spacing, align, outline) ink, fill = self._getink(fill) - print("Outline: %s" % outline) if font is None: font = self.getfont() if ink is None: diff --git a/docs/reference/ImageDraw.rst b/docs/reference/ImageDraw.rst index 842407c90..53c83ee7d 100644 --- a/docs/reference/ImageDraw.rst +++ b/docs/reference/ImageDraw.rst @@ -240,6 +240,7 @@ Methods the number of pixels between lines. :param align: If the text is passed on to multiline_text(), "left", "center" or "right". + :param outline: Color to use to draw an outline around the text. .. py:method:: PIL.ImageDraw.Draw.multiline_text(xy, text, fill=None, font=None, anchor=None, spacing=0, align="left") @@ -252,6 +253,7 @@ Methods :param font: An :py:class:`~PIL.ImageFont.ImageFont` instance. :param spacing: The number of pixels between lines. :param align: "left", "center" or "right". + :param outline: Color to use to draw an outline around the text. .. py:method:: PIL.ImageDraw.Draw.textsize(text, font=None, spacing=0) diff --git a/docs/releasenotes/3.5.0.rst b/docs/releasenotes/3.5.0.rst new file mode 100644 index 000000000..eb6d665ac --- /dev/null +++ b/docs/releasenotes/3.5.0.rst @@ -0,0 +1,10 @@ +3.5.0 +----- + +New text-outlining feature +========================== + +Both ``ImageDraw.text()`` and ``ImageDraw.multiline_text()`` now supports +text-stroking. +Passing in a color value to the methods using the ``outline`` keyword argument +will now outline the text in that color. diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index 8c484af44..920dc8834 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -6,6 +6,7 @@ Release Notes .. toctree:: :maxdepth: 2 + 3.5.0 3.4.0 3.3.2 3.3.0