from PIL import ImageFont
from pathlib import Path
import json
p=Path(__file__).parent;r={n:ImageFont.truetype(str(p/n),40).getlength('ABAB 2026') for n in ['wide.ttf','narrow.ttf']}
assert r['wide.ttf']>220>r['narrow.ttf']
print(json.dumps(r,indent=2))
