Fix font enumeration

This commit is contained in:
Martin Gross
2026-08-04 10:22:09 +02:00
parent c369ba5f60
commit e4a0bba3bc
+1 -1
View File
@@ -147,7 +147,7 @@ def get_font_stylesheet(font_name, organizer: Organizer = None, event: Event = N
stylesheet = []
font = get_fonts(event)[font_name]
for sty, formats in font.items():
if sty == 'sample':
if sty in ['sample', 'pdf_only']:
continue
stylesheet.append('@font-face { ')
stylesheet.append('font-family: "{}";'.format(font_name))