Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nulano committed Apr 8, 2019
1 parent e2ed4cf commit c63a72d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/test_imagefont.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,18 @@ def test_unicode_pilfont(self):

@unittest.skipIf(sys.platform.startswith('win32') and sys.version.startswith('2'),
"requires Python 3.x on Windows")
def test_unicode_render(self):
def test_unicode_extended(self):
# issue #3777
text = u"A\u278A\U0001F12B"
target = "Tests/images/unicode_extended.png"

ttf = ImageFont.truetype("Tests/fonts/NotoSansSymbols-Regular.ttf",
FONT_SIZE, layout_engine=self.LAYOUT_ENGINE)
img = Image.new("RGB", (100, 60))
d = ImageDraw.Draw(img)
d.text((10, 10), text, font=ttf)
self.assert_image_similar_tofile(img, "Tests/images/unicode_extended.png", self.metrics['textsize'])

self.assert_image_similar_tofile(img, target, self.metrics['textsize'])

def _test_fake_loading_font(self, path_to_fake, fontname):
# Make a copy of FreeTypeFont so we can patch the original
Expand Down

0 comments on commit c63a72d

Please sign in to comment.