mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Updated freetype to 2.9
This commit is contained in:
parent
b9ea73738e
commit
4afed260dc
|
@ -58,6 +58,9 @@ class TestImageFont(PillowTestCase):
|
||||||
('2', '8'): {'multiline': 6.2,
|
('2', '8'): {'multiline': 6.2,
|
||||||
'textsize': 2.5,
|
'textsize': 2.5,
|
||||||
'getters': (12, 16)},
|
'getters': (12, 16)},
|
||||||
|
('2', '9'): {'multiline': 6.2,
|
||||||
|
'textsize': 2.5,
|
||||||
|
'getters': (12, 16)},
|
||||||
'Default': {'multiline': 0.5,
|
'Default': {'multiline': 0.5,
|
||||||
'textsize': 0.5,
|
'textsize': 0.5,
|
||||||
'getters': (12, 16)},
|
'getters': (12, 16)},
|
||||||
|
@ -406,10 +409,10 @@ class TestImageFont(PillowTestCase):
|
||||||
im = Image.new(mode='RGB', size=(300, 100))
|
im = Image.new(mode='RGB', size=(300, 100))
|
||||||
target = im.copy()
|
target = im.copy()
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
#should not crash here.
|
#should not crash here.
|
||||||
draw.text((10, 10), '', font=font)
|
draw.text((10, 10), '', font=font)
|
||||||
self.assert_image_equal(im, target)
|
self.assert_image_equal(im, target)
|
||||||
|
|
||||||
def test_unicode_pilfont(self):
|
def test_unicode_pilfont(self):
|
||||||
# should not segfault, should return UnicodeDecodeError
|
# should not segfault, should return UnicodeDecodeError
|
||||||
# issue #2826
|
# issue #2826
|
||||||
|
|
|
@ -34,9 +34,9 @@ libs = {
|
||||||
'dir': 'tiff-4.0.9',
|
'dir': 'tiff-4.0.9',
|
||||||
},
|
},
|
||||||
'freetype': {
|
'freetype': {
|
||||||
'url': 'https://download.savannah.gnu.org/releases/freetype/freetype-2.8.1.tar.gz',
|
'url': 'https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.gz',
|
||||||
'filename': PILLOW_DEPENDS_DIR + 'freetype-2.8.1.tar.gz',
|
'filename': PILLOW_DEPENDS_DIR + 'freetype-2.9.tar.gz',
|
||||||
'dir': 'freetype-2.8.1',
|
'dir': 'freetype-2.9',
|
||||||
},
|
},
|
||||||
'lcms': {
|
'lcms': {
|
||||||
'url': SF_MIRROR+'/project/lcms/lcms/2.7/lcms2-2.7.zip',
|
'url': SF_MIRROR+'/project/lcms/lcms/2.7/lcms2-2.7.zip',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user