added test for attempting to apply complex settings to fonts when using basic layout engine

This commit is contained in:
Ben Yang 2019-03-06 17:04:48 -08:00
parent 515244b672
commit 5cdbec0cfe

View File

@ -525,6 +525,14 @@ class TestImageFont(PillowTestCase):
self.assertEqual(t.getsize_multiline('ABC\nA'), (36, 36))
self.assertEqual(t.getsize_multiline('ABC\nAaaa'), (48, 36))
# def test_complex_font_settings(self):
# # Arrange
# t = self.get_font()
# # Act / Assert
# if t.layout_engine == ImageFont.LAYOUT_BASIC:
# self.assertRaises(KeyError, t.getmask, 'абвг', direction='rtl')
# self.assertRaises(KeyError, t.getmask, 'абвг', features=['-kern'])
# self.assertRaises(KeyError, t.getmask, 'абвг', language='sr')
@unittest.skipUnless(HAS_RAQM, "Raqm not Available")
class TestImageFont_RaqmLayout(TestImageFont):