i added some fonts to my public/fonts/* folder, but chrome says i get a 406 response from the dioxus server when trying to load them.
is there a dioxus setting i need to change?
the favicon i linked with document::Link { rel: "icon", href: asset!("/public/favicon.ico") } works, so I know that the public folder should be accessible , but all my fonts in public/fonts/* cant be accessed
what I did:
- add the woff2 fonts to the public/fonts folder
- add
@font-face {
font-family: "MyCustomFont";
src: url("/fonts/MyCustomFont-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
entries for each of my fonts to the tailwind input.css
3. extend tailwind font to make this font the new global font
extend: {
fontFamily: {
'sans': ["MyCustomFont", ...defaultTheme.fontFamily.sans],
},
},
this results in the chrome network -> fonts inspector to register 406's for MyCustomFont