Files
Michael Fabian 'Xaymar' Dirks 7ab17a30ef Increase font size and fix fallback
2023-04-03 22:44:55 +02:00

85 lines
2.5 KiB
SCSS

---
fonts:
- family: "Oswald"
styles:
- weight: "normal"
format: "truetype"
url: "assets/fonts/Oswald-VariableFont_wght.ttf"
- weight: 200
format: "truetype"
url: "assets/fonts/Oswald-ExtraLight.ttf"
- weight: 300
format: "truetype"
url: "assets/fonts/Oswald-Light.ttf"
- weight: 400
format: "truetype"
url: "assets/fonts/Oswald-Regular.ttf"
- weight: 500
format: "truetype"
url: "assets/fonts/Oswald-Medium.ttf"
- weight: 600
format: "truetype"
url: "assets/fonts/Oswald-SemiBold.ttf"
- weight: 700
format: "truetype"
url: "assets/fonts/Oswald-Bold.ttf"
- family: "Roboto"
styles:
- weight: 100
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Thin.ttf"
- weight: 100
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-ThinItalic.ttf"
- weight: 300
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Light.ttf"
- weight: 300
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-LightItalic.ttf"
- weight: 400
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Regular.ttf"
- weight: 400
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-Italic.ttf"
- weight: 500
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Medium.ttf"
- weight: 500
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-MediumItalic.ttf"
- weight: 700
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Bold.ttf"
- weight: 700
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-BoldItalic.ttf"
- weight: 900
style: normal
format: "truetype"
url: "assets/fonts/Roboto-Black.ttf"
- weight: 900
style: oblique
format: "truetype"
url: "assets/fonts/Roboto-BlackItalic.ttf"
---
{% for font in page.fonts %}{% for style in font.styles %}@font-face {
font-family: "{{ font.family }}";
src: url("{{ style.url | absolute_url }}"){% if style.format %} format("{{ style.format }}"){% endif %};
{% if style.weight %} font-weight: {{ style.weight }};{% endif %}
{% if style.style %} font-style: {{ style.style}};{% endif %}
font-display: swap;
}
{% endfor %}{% endfor %}