Adding font from Google Fonts
Add to Custom CSS:
@import url('https://fonts.googleapis.com/css2?family=Winky+Rough:ital,wght@0,300..900;1,300..900&display=swap');
body {
font-family: "Winky Rough", sans-serif;
}
Adding font from custom file
- Upload font file to Files
- Add CSS to import font face
@font-face {
font-family: 'MyFont';
src: url('/projects/teststests/WinkyRough-VariableFont_wght.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'MyFont';
src: url('/projects/teststests/WinkyRough-Italic-VariableFont_wght.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
body {
font-family: "MyFont", sans-serif;
}