mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Fix matching against style names in presence of elision
This commit is contained in:
@@ -114,6 +114,11 @@ class Selection(BaseTest):
|
||||
self.ae(get_named_style(face)['name'], 'Black')
|
||||
face = face_from_descriptor(ff['bi'])
|
||||
self.ae(get_named_style(face)['name'], 'Black Italic')
|
||||
opts.font_family = parse_font_spec('family=SourceCodeVF variable_name=SourceCodeUpright wght=470')
|
||||
opts.italic_font = parse_font_spec('family=SourceCodeVF variable_name=SourceCodeItalic style=Black')
|
||||
ff = get_font_files(opts)
|
||||
self.assertFalse(get_named_style(ff['medium']))
|
||||
self.ae(get_named_style(ff['italic'])['name'], 'Black Italic')
|
||||
if has('cascadia code'):
|
||||
opts = Options()
|
||||
opts.font_family = parse_font_spec('family="cascadia code"')
|
||||
|
||||
Reference in New Issue
Block a user