Changing the default font. #480
Unanswered
fridlundisme
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have had issues with changing the font families in SvelteUI for my project.
Finally the only way I could make it work was to create a new theme:
Fonts are added in my static/fonts folder and imported via
@font-face
annotation inapp.css
.This might seem straight forward (it wasn't for me). However, it took me quite a while to get it to work, as it looked the font appeared, then was changed after the page was rendered.
The only way I could get my fonts to stick was to remove the server side rendering
(using the
import { prepareStylesSSR } from '@svelteuidev/core';
inhooks.server.ts
file).Is there something else I need to do to be able to change the default font family while still using SSR?
This seem to be either me not understanding the process enough, or something that should be in the documentation.
Anyone that faced this issue as well that can provide some clarity for me?
Beta Was this translation helpful? Give feedback.
All reactions