mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 04:24:52 +02:00
Add a ligature shaping test
This commit is contained in:
BIN
kitty_tests/FiraCode-Medium.otf
Normal file
BIN
kitty_tests/FiraCode-Medium.otf
Normal file
Binary file not shown.
@@ -70,6 +70,9 @@ class Rendering(BaseTest):
|
||||
self.ae(len(cells), sz)
|
||||
|
||||
def test_shaping(self):
|
||||
self.assertEqual(len(shape_string('abcd')), 4)
|
||||
flags = [x.get('fl', 0) for x in shape_string('abcd')]
|
||||
self.ae(flags, [0, 0, 0, 0])
|
||||
flags = [x.get('fl', 0) for x in shape_string('e\u0347\u0305')]
|
||||
self.assertEqual(flags, [0, 1, 1])
|
||||
flags = [x.get('fl', 0) for x in shape_string('===', path='kitty_tests/FiraCode-Medium.otf')]
|
||||
self.assertEqual(flags, [0, 1, 1])
|
||||
|
||||
Reference in New Issue
Block a user