How do you load and use a custom font in Svelte
If you are using Sveltekit, you can load fonts locally using the static directory. Store your font files under static/fonts, and then use either a CSS file or a <style> tag to reference your font files. /* fonts.css */ @font-face { font-family: ‘Lora’; font-style: normal; font-weight: 500; src: url(‘/fonts/lora-v20-latin-500.eot’); /* IE9 Compat Modes */ src: … Read more