Render font feature list in UI

This commit is contained in:
Kovid Goyal
2024-05-27 12:47:09 +05:30
parent 57edb412e6
commit a69d71d416
10 changed files with 74 additions and 28 deletions

View File

@@ -147,11 +147,11 @@ class Selection(BaseTest):
opts = Options()
opts.font_family = parse_font_spec('family="liberation mono"')
ff = get_font_files(opts)
self.ae(face_from_descriptor(ff['medium']).applied_features(), ('-dlig',))
self.ae(face_from_descriptor(ff['bold']).applied_features(), ())
opts.font_family = parse_font_spec('family="liberation mono" features="dlig test"')
self.ae(face_from_descriptor(ff['medium']).applied_features(), {'dlig': '-dlig'})
self.ae(face_from_descriptor(ff['bold']).applied_features(), {})
opts.font_family = parse_font_spec('family="liberation mono" features="dlig test=3"')
ff = get_font_files(opts)
self.ae(face_from_descriptor(ff['medium']).applied_features(), ('dlig', 'test'))
self.ae(face_from_descriptor(ff['medium']).applied_features(), {'dlig': 'dlig', 'test': 'test=3'})
class Rendering(BaseTest):