Work on getting styles from STAT table data

This commit is contained in:
Kovid Goyal
2024-05-03 21:39:40 +05:30
parent 3814e92f31
commit d1ba421e8c
5 changed files with 52 additions and 15 deletions

View File

@@ -25,6 +25,9 @@ def create_family_groups(monospaced: bool = True) -> Dict[str, List[ListedFont]]
def as_json(indent: Optional[int] = None) -> str:
import json
groups = create_family_groups()
for v in groups.values():
for f in v:
f['variable_data'] = get_variable_data_for_descriptor(f['descriptor']) # type: ignore
return json.dumps(groups, indent=indent)