def test_arabictext_features(self):
    ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE)
    im = Image.new(mode='RGB', size=(300, 100))
    draw = ImageDraw.Draw(im)
    draw.text((0, 0), 'اللغة العربية', font=ttf, fill=500, features=['-fina', '-init', '-medi'])
    target = 'Tests/images/test_arabictext_features.png'
    target_img = Image.open(target)
    self.assert_image_similar(im, target_img, 0.5)
def test_arabictext_features(self):
    ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE)
    im = Image.new(mode='RGB', size=(300, 100))
    draw = ImageDraw.Draw(im)
    draw.text((0, 0), 'اللغة العربية', font=ttf, fill=500, features=['-fina', '-init', '-medi'])
    target = 'Tests/images/test_arabictext_features.png'
    target_img = Image.open(target)
    self.assert_image_similar(im, target_img, 0.5)