Files
com.xaymar.www/assets/fonts.scss
T
Michael Fabian 'Xaymar' Dirks b60b2a60ca Fix fonts
2022-03-09 11:20:15 +01:00

84 lines
2.4 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-RegularItalic.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 }}";{% if style.weight %}
font-weight: {{ style.weight }};{% endif %}{% if style.style %}
font-style: {{ style.style}};{% endif %}
src: url("{{ style.url | absolute_url }}") format("{{ style.format }}");
}
{% endfor %}{% endfor %}