Iosevka: Fix incorrect rendering when there is a combining char that does not group with its neighbors

Fixes #5153
This commit is contained in:
Kovid Goyal
2022-06-01 12:00:53 +05:30
parent 56f8a06362
commit e12a9f3caf
3 changed files with 13 additions and 3 deletions

View File

@@ -110,6 +110,7 @@ class Rendering(BaseTest):
self.ae(g('===--<>=='), [(3, 3), (2, 2), (2, 2), (2, 2)])
self.ae(g('==!=<>==<><><>'), [(4, 4), (2, 2), (2, 2), (2, 2), (2, 2), (2, 2)])
self.ae(g('-' * 18), [(18, 18)])
self.ae(g('a>\u2060<b'), [(1, 1), (1, 2), (1, 1), (1, 1)])
colon_glyph = ss('9:30', font='FiraCode-Medium.otf')[1][2]
self.assertNotEqual(colon_glyph, ss(':', font='FiraCode-Medium.otf')[0][2])
self.ae(colon_glyph, 1031)