Font API: Support for script-specific samples

This commit is contained in:
Raphael Michel
2020-02-01 13:46:50 +01:00
parent 6b2bc71be9
commit d37cc4f641
6 changed files with 22 additions and 5 deletions

View File

@@ -639,7 +639,7 @@ class EventSettingsForm(SettingsForm):
if not event.has_subevents:
del self.fields['frontpage_subevent_ordering']
self.fields['primary_font'].choices += [
(a, a) for a in get_fonts()
(a, {"title": a, "data": v}) for a, v in get_fonts().items()
]