Add font-display: swap to custom shop fonts

This commit is contained in:
Raphael Michel
2020-03-08 13:53:06 +01:00
parent b7528ae1cf
commit be1bf81298

View File

@@ -204,5 +204,6 @@ def get_font_stylesheet(font_name):
if "truetype" in formats:
srcs.append("url(static('{}')) format('truetype')".format(formats['truetype']))
stylesheet.append("src: {};".format(", ".join(srcs)))
stylesheet.append("font-display: swap;")
stylesheet.append("}")
return "\n".join(stylesheet)