mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
SCSS: Fix font generation error
This commit is contained in:
@@ -175,6 +175,8 @@ def get_font_stylesheet(font_name):
|
|||||||
stylesheet = []
|
stylesheet = []
|
||||||
font = get_fonts()[font_name]
|
font = get_fonts()[font_name]
|
||||||
for sty, formats in font.items():
|
for sty, formats in font.items():
|
||||||
|
if sty == 'sample':
|
||||||
|
continue
|
||||||
stylesheet.append('@font-face { ')
|
stylesheet.append('@font-face { ')
|
||||||
stylesheet.append('font-family: "{}";'.format(font_name))
|
stylesheet.append('font-family: "{}";'.format(font_name))
|
||||||
if sty in ("italic", "bolditalic"):
|
if sty in ("italic", "bolditalic"):
|
||||||
|
|||||||
Reference in New Issue
Block a user