mirror of
https://github.com/pretix/pretix.git
synced 2026-08-04 09:47:50 +00:00
Fix font enumeration
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user