2019-05-06 14:14:47 +03:00
|
|
|
6.1.0
|
|
|
|
-----
|
|
|
|
|
|
|
|
API Additions
|
|
|
|
=============
|
|
|
|
|
|
|
|
ImageGrab.grab
|
|
|
|
^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
An optional ``include_layered_windows`` parameter has been added to ``ImageGrab.grab``,
|
|
|
|
defaulting to ``False``. If true, layered windows will be included in the resulting
|
|
|
|
image on Windows.
|
|
|
|
|
2019-06-20 13:01:43 +03:00
|
|
|
Variation fonts
|
|
|
|
^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Variation fonts are now supported, allowing for different styles from the same font
|
|
|
|
file. ``ImageFont.FreeTypeFont`` has four new methods,
|
|
|
|
:py:meth:`PIL.ImageFont.FreeTypeFont.get_variation_names` and
|
|
|
|
:py:meth:`PIL.ImageFont.FreeTypeFont.set_variation_by_name` for using named styles, and
|
|
|
|
:py:meth:`PIL.ImageFont.FreeTypeFont.get_variation_axes` and
|
|
|
|
:py:meth:`PIL.ImageFont.FreeTypeFont.set_variation_by_axes` for using font axes
|
|
|
|
instead. An ``IOError`` will be raised if the font is not a variation font. FreeType
|
|
|
|
2.9.1 or greater is required.
|
|
|
|
|
2019-05-06 14:14:47 +03:00
|
|
|
Other Changes
|
|
|
|
=============
|
|
|
|
|
|
|
|
ImageTk.getimage
|
|
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This function is now supported. It returns the contents of an ``ImageTk.PhotoImage`` as
|
|
|
|
an RGBA ``Image.Image`` instance.
|
2019-06-20 13:01:43 +03:00
|
|
|
|
|
|
|
Top To Bottom Complex Text Rendering
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-06-20 13:31:57 +03:00
|
|
|
Drawing text in the 'ttb' direction with ImageFont has been significantly improved
|
|
|
|
and requires Raqm 0.7 or greater.
|