From 33d207b3f01067ddd638b050ded6228657b42838 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 12 Mar 2019 11:12:19 +0200 Subject: [PATCH] Move to API Additions, not Deprecations [CI skip] And some minor editing to make more concise/consistent. --- docs/releasenotes/6.0.0.rst | 41 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/docs/releasenotes/6.0.0.rst b/docs/releasenotes/6.0.0.rst index caf501014..87fcce3ae 100644 --- a/docs/releasenotes/6.0.0.rst +++ b/docs/releasenotes/6.0.0.rst @@ -99,35 +99,35 @@ version. Use ``PIL.__version__`` instead. -New ``language`` parameter -^^^^^^^^^^^^^^^^^^^^^^^^ - -Text rendering functions now accept a ``language`` parameter, to request language-specific glyphs and ligatures from the font - -The following functions accept the new parameter: - -* ``PIL.ImageDraw.ImageDraw.text()`` -* ``PIL.ImageDraw.ImageDraw.multiline_text()`` -* ``PIL.ImageDraw.ImageDraw.textsize()`` -* ``PIL.ImageDraw.ImageDraw.multiline_textsize()`` -* ``PIL.ImageFont.ImageFont.getsize()`` -* ``PIL.ImageFont.ImageFont.getsize_multiline()`` -* ``PIL.ImageFont.ImageFont.getmask()`` - API Additions ============= -DIB File Format +DIB file format ^^^^^^^^^^^^^^^ -Pillow now supports reading and writing the DIB "Device Independent Bitmap" file format. +Pillow now supports reading and writing the Device Independent Bitmap file format. Image.quantize ^^^^^^^^^^^^^^ -The `dither` option is now a customisable parameter (was previously hardcoded to `1`). This parameter takes the same values used in `Image.convert` +The ``dither`` option is now a customisable parameter (was previously hardcoded to ``1``). +This parameter takes the same values used in ``Image.convert``. -PNG EXIF Data +New language parameter +^^^^^^^^^^^^^^^^^^^^^^ + +These text-rendering functions now accept a ``language`` parameter to request +language-specific glyphs and ligatures from the font: + +* ``ImageDraw.ImageDraw.multiline_text()`` +* ``ImageDraw.ImageDraw.multiline_textsize()`` +* ``ImageDraw.ImageDraw.text()`` +* ``ImageDraw.ImageDraw.textsize()`` +* ``ImageFont.ImageFont.getmask()`` +* ``ImageFont.ImageFont.getsize_multiline()`` +* ``ImageFont.ImageFont.getsize()`` + +PNG EXIF data ^^^^^^^^^^^^^ EXIF data can now be read from and saved to PNG images. However, unlike other image @@ -145,4 +145,5 @@ Pillow can now read uncompressed RGB data from DDS images. Reading TIFF with old-style JPEG compression ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Added support reading TIFF files with old-style JPEG compression through LibTIFF. All YCbCr TIFF images are now always read as RGB. +Added support reading TIFF files with old-style JPEG compression through LibTIFF. All YCbCr +TIFF images are now always read as RGB.