mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Merge branch 'main' into makedoc
This commit is contained in:
commit
c043f972d0
2
.github/workflows/test-docker.yml
vendored
2
.github/workflows/test-docker.yml
vendored
|
@ -79,7 +79,7 @@ jobs:
|
||||||
MATRIX_DOCKER: ${{ matrix.docker }}
|
MATRIX_DOCKER: ${{ matrix.docker }}
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
flags: GHA_Docker
|
flags: GHA_Docker
|
||||||
name: ${{ matrix.docker }}
|
name: ${{ matrix.docker }}
|
||||||
|
|
10
.github/workflows/test-mingw.yml
vendored
10
.github/workflows/test-mingw.yml
vendored
|
@ -73,11 +73,11 @@ jobs:
|
||||||
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
|
python3 -m pytest -vx --cov PIL --cov Tests --cov-report term --cov-report xml Tests
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
run: |
|
uses: codecov/codecov-action@v3
|
||||||
python3 -m pip install codecov
|
with:
|
||||||
bash <(curl -s https://codecov.io/bash) -F GHA_Windows
|
file: ./coverage.xml
|
||||||
env:
|
flags: GHA_Windows
|
||||||
CODECOV_NAME: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
|
|
||||||
success:
|
success:
|
||||||
permissions:
|
permissions:
|
||||||
|
|
2
.github/workflows/test-windows.yml
vendored
2
.github/workflows/test-windows.yml
vendored
|
@ -171,7 +171,7 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: GHA_Windows
|
flags: GHA_Windows
|
||||||
|
|
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
@ -30,11 +30,6 @@ jobs:
|
||||||
REVERSE: "--reverse"
|
REVERSE: "--reverse"
|
||||||
- python-version: "3.8"
|
- python-version: "3.8"
|
||||||
PYTHONOPTIMIZE: 2
|
PYTHONOPTIMIZE: 2
|
||||||
# Include new variables for Codecov
|
|
||||||
- os: ubuntu-latest
|
|
||||||
codecov-flag: GHA_Ubuntu
|
|
||||||
- os: macos-latest
|
|
||||||
codecov-flag: GHA_macOS
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||||
|
@ -106,9 +101,11 @@ jobs:
|
||||||
.ci/after_success.sh
|
.ci/after_success.sh
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.codecov-flag }}
|
uses: codecov/codecov-action@v3
|
||||||
env:
|
with:
|
||||||
CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
file: ./coverage.xml
|
||||||
|
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }}
|
||||||
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
||||||
|
|
||||||
success:
|
success:
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
@ -253,7 +253,7 @@ Support for FreeType 2.7 has been removed.
|
||||||
We recommend upgrading to at least `FreeType`_ 2.10.4, which fixed a severe
|
We recommend upgrading to at least `FreeType`_ 2.10.4, which fixed a severe
|
||||||
vulnerability introduced in FreeType 2.6 (:cve:`CVE-2020-15999`).
|
vulnerability introduced in FreeType 2.6 (:cve:`CVE-2020-15999`).
|
||||||
|
|
||||||
.. _FreeType: https://www.freetype.org
|
.. _FreeType: https://freetype.org/
|
||||||
|
|
||||||
im.offset
|
im.offset
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
|
@ -184,7 +184,7 @@ Many of Pillow's features require external libraries:
|
||||||
loads libfribidi at runtime if it is installed.
|
loads libfribidi at runtime if it is installed.
|
||||||
On Windows this requires compiling FriBiDi and installing ``fribidi.dll``
|
On Windows this requires compiling FriBiDi and installing ``fribidi.dll``
|
||||||
into a directory listed in the `Dynamic-Link Library Search Order (Microsoft Docs)
|
into a directory listed in the `Dynamic-Link Library Search Order (Microsoft Docs)
|
||||||
<https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications>`_
|
<https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order#search-order-for-desktop-applications>`_
|
||||||
(``fribidi-0.dll`` or ``libfribidi-0.dll`` are also detected).
|
(``fribidi-0.dll`` or ``libfribidi-0.dll`` are also detected).
|
||||||
See `Build Options`_ to see how to build this version.
|
See `Build Options`_ to see how to build this version.
|
||||||
* Previous versions of Pillow (5.0.0 to 8.1.2) linked libraqm dynamically at runtime.
|
* Previous versions of Pillow (5.0.0 to 8.1.2) linked libraqm dynamically at runtime.
|
||||||
|
|
|
@ -731,4 +731,4 @@ Methods
|
||||||
homogeneous, but similar, colors.
|
homogeneous, but similar, colors.
|
||||||
|
|
||||||
.. _BCP 47 language code: https://www.w3.org/International/articles/language-tags/
|
.. _BCP 47 language code: https://www.w3.org/International/articles/language-tags/
|
||||||
.. _OpenType docs: https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
.. _OpenType docs: https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
|
|
|
@ -338,7 +338,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
:param language: Language of the text. Different languages may use
|
:param language: Language of the text. Different languages may use
|
||||||
|
@ -391,7 +391,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
:param language: Language of the text. Different languages may use
|
:param language: Language of the text. Different languages may use
|
||||||
|
@ -456,7 +456,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
.. versionadded:: 4.2.0
|
.. versionadded:: 4.2.0
|
||||||
|
@ -520,7 +520,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
:param language: Language of the text. Different languages may use
|
:param language: Language of the text. Different languages may use
|
||||||
|
@ -610,7 +610,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
.. versionadded:: 4.2.0
|
.. versionadded:: 4.2.0
|
||||||
|
@ -702,7 +702,7 @@ class FreeTypeFont:
|
||||||
example '-liga' to disable ligatures or '-kern'
|
example '-liga' to disable ligatures or '-kern'
|
||||||
to disable kerning. To get all supported
|
to disable kerning. To get all supported
|
||||||
features, see
|
features, see
|
||||||
https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist
|
https://learn.microsoft.com/en-us/typography/opentype/spec/featurelist
|
||||||
Requires libraqm.
|
Requires libraqm.
|
||||||
|
|
||||||
.. versionadded:: 4.2.0
|
.. versionadded:: 4.2.0
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*
|
*
|
||||||
* This cast is safe, as the top 32-bits of HFILE are guaranteed to be zero,
|
* This cast is safe, as the top 32-bits of HFILE are guaranteed to be zero,
|
||||||
* see
|
* see
|
||||||
* https://docs.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication
|
* https://learn.microsoft.com/en-us/windows/win32/winprog64/interprocess-communication
|
||||||
*/
|
*/
|
||||||
#ifndef USE_WIN32_FILEIO
|
#ifndef USE_WIN32_FILEIO
|
||||||
#define fd_to_tiff_fd(fd) (fd)
|
#define fd_to_tiff_fd(fd) (fd)
|
||||||
|
|
2
src/thirdparty/raqm/README.md
vendored
2
src/thirdparty/raqm/README.md
vendored
|
@ -81,5 +81,5 @@ The following projects have patches to support complex text layout using Raqm:
|
||||||
[1]: https://github.com/fribidi/fribidi
|
[1]: https://github.com/fribidi/fribidi
|
||||||
[2]: https://github.com/Tehreer/SheenBidi
|
[2]: https://github.com/Tehreer/SheenBidi
|
||||||
[3]: https://github.com/harfbuzz/harfbuzz
|
[3]: https://github.com/harfbuzz/harfbuzz
|
||||||
[4]: https://www.freetype.org
|
[4]: https://freetype.org/
|
||||||
[5]: https://www.gtk.org/gtk-doc
|
[5]: https://www.gtk.org/gtk-doc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user