nulano
c718cc6c94
avoid unused variable warnings
2021-03-25 00:41:05 +01:00
nulano
5e61c1842f
fix support for old versions of Raqm
2021-03-25 00:41:05 +01:00
nulano
9c178435fb
raqm: fix FriBiDi<1 support
2021-01-05 00:07:03 +11:00
nulano
be0d0a3a48
fix finding raqm deps
2021-01-05 00:07:03 +11:00
nulano
5cd688fc82
add option to statically link fribidi, version info
2021-01-05 00:06:29 +11:00
nulano
8bc1ff35b4
use FriBiDi shim in Raqm
2021-01-05 00:03:52 +11:00
Andrew Murray
46b7e86bab
Format with ClangFormat
2021-01-03 14:17:51 +11:00
Andrew Murray
00df94bb78
Removed unused variable
2020-12-27 16:16:55 +11:00
Andrew Murray
8eaf9e7cb7
Fixed warning assigning to "unsigned char *" from "char *"
2020-12-24 10:47:06 +11:00
Hugo van Kemenade
f9852c0381
Merge branch 'master' into fix-imagingHinclude
2020-10-14 14:50:36 +03:00
Axel Huebl
115add2fa0
do not add extra include directories ( #3 )
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-10-14 01:59:34 -07:00
nulano
b49ebad5f5
Merge remote-tracking branch 'upstream/master' into anchor-part3
2020-10-12 16:14:00 +01:00
nulano
d7a08cbd15
add color support to new text measuring functions
2020-10-12 16:05:19 +01:00
Hugo van Kemenade
c1a9f889f3
Merge pull request #4964 from nulano/pypy
2020-10-12 17:59:55 +03:00
nulano
90e8255ba4
Merge remote-tracking branch 'upstream/master' into anchor-part3
...
# Conflicts:
# Tests/test_imagefontctl.py
2020-10-12 15:50:45 +01:00
nulano
c06bb8044d
remove PyPy3-7.1.x compatibility code
2020-10-12 02:08:50 +01:00
nulano
39ae5d62f0
compatibility code for ancient FreeType
2020-10-12 01:45:52 +01:00
nulano
395aa946a9
add getbbox and getlength, with tests
...
Squashed commits:
[ec9ec31b] add tests for invalid anchor
(cherry picked from commit 9e50a6a47f79876ee56942152047f03fff03c49b)
[386a9170] fix lint and docs
(cherry picked from commit 2d0d5282fcfc3ee332a41e60b865ee766445cc3d)
[29f5d4c9] restore and document previous getsize behaviour
see discussion in issue 4789
(cherry picked from commit 9fbc94571ce0ed42fdd11e99f343a1613c9dc6d3)
[0ffd51a0] add getbbox and getlength, with tests
(cherry picked from commit c5f63737476a998c81e589e5819d21ca69bb7b46)
2020-10-09 00:56:58 +01:00
nulano
568a1260fc
fix color on big-endian
2020-10-07 13:03:05 +01:00
nulano
bf529303de
use FT_Bitmap_Convert instead of reimplementing the wheel
2020-10-07 05:29:18 +01:00
nulano
9151da162c
add support for CBDT and embedded bitmaps in truetype fonts
2020-10-07 05:29:17 +01:00
nulano
82a28d12e2
add support for fonts with COLR data
2020-10-07 05:29:10 +01:00
nulano
e6d4c2ce8f
implement text anchor for truetype fonts
...
(cherry picked from commit bac9025918ccf944bac77addc130f33cf9d74701)
2020-09-19 15:17:45 +02:00
Axel Huebl
f79379ed7c
Imaging.h: confusion with system
...
The file `libImaging/Imaging.h` gets installed flat on
Ubuntus into the public Python includes.
When building a newer version of Pillow from source and
hinting the Python includes "too early" in includes, e.g.
in package managers, this can confuse the two files and
pick up the external file over the internal one. With
different versions, this mismatch can lead to build errors,
e.g. undefined macros.
The most robust way to avoid this is to pre-fix the internal
include accordingly, so that the relative path to the including
file has to match as well.
2020-09-17 18:06:45 +10:00
nulano
ee1cc6ad7c
remove use of FT_Set_Transform
2020-09-09 02:14:49 +02:00
nulano
5d541e3d9e
simplify code, organize variable declarations, add comments
2020-09-09 02:14:46 +02:00
nulano
ea582a19e3
fix basic layout
...
(cherry picked from commit 132cb7e5a6f892bba99d179d419afec754004e09)
2020-09-02 00:26:56 +02:00
nulano
5d57261b9c
fix text clipping due to rounding
...
(cherry picked from commit 35500aad08fb18a904f326df2ce8c59ae6413801)
2020-09-02 00:26:53 +02:00
nulano
e3450d1f6e
text bugfixes
2020-09-01 21:55:06 +02:00
nulano
cee61d7622
vertical text - cleanup and bugfixes
2020-09-01 21:55:06 +02:00
nulano
e8dcbff64e
horizontal text - cleanup and bugfixes
2020-09-01 21:55:06 +02:00
Luke Granger-Brown
04e93769af
Use correct function type for raqm_version_string.
...
This causes compilation to (correctly) fail on Clang because this
isn't the correct assignment type.
2020-06-30 16:34:10 +01:00
Hugo van Kemenade
1bc67c9f0f
Merge pull request #4700 from nulano/features-version
2020-06-21 21:36:46 +03:00
Hugo van Kemenade
390b34c231
Merge pull request #4664 from nulano/ft-getsize-mode
2020-06-21 18:53:03 +03:00
nulano
6c1ff252d6
check run-time version numbers where available, add docs
2020-06-21 18:58:39 +10:00
Hugo van Kemenade
3bbcd7b3de
Merge pull request #4642 from nulano/gha-msys
2020-06-13 13:26:00 +03:00
nulano
0b6f9091c5
corrected comment [ci skip]
2020-06-13 06:44:05 +02:00
nulano
9fbd35fe87
use mode for getsize
2020-06-01 22:18:38 +02:00
nulano
7b8805fcee
do not render glyphs during text layout
2020-05-27 07:07:49 +02:00
nulano
d2f90d6cac
fix freetype and raqm on MSYS
2020-05-23 23:16:06 +02:00
Andrew Murray
3a75e843f4
Added braces
2020-05-11 07:46:12 +10:00
Andrew Murray
c1d9931adc
Added braces
2020-05-10 19:56:36 +10:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
nulano
1e31de1824
add missing if brackets
2020-03-29 13:25:48 +02:00
Hugo van Kemenade
da4667cc9e
Merge pull request #4401 from radarhere/freetype
...
Fixed stroke on FreeType < 2.9
2020-03-06 00:21:17 +02:00
Andrew Murray
17c10b0ca0
Fixed stroke on FreeType < 2.9
2020-02-24 22:49:33 +11:00
Andrew Murray
55b487368a
Use METH_NOARGS when no arguments are required
2020-02-24 22:48:42 +11:00
nulano
64317f8885
raqm now works with PyPy on Windows
2019-11-20 17:02:44 +00:00
nulano
837d8ae984
fix support for extended unicode characters in PyPy
2019-11-20 17:02:44 +00:00
Hugo van Kemenade
5006401d0b
Merge branch 'master' into rm-2.7
2019-11-03 22:48:26 +02:00