Adding font url from assets folder

Hello,

I can’t understand why i’m receiving a 404 error when linking font from assets folder, anyone know how to fix this?

GET http://localhost:12345/css/assets/typeface/SFRounded-Bold.ttf net::ERR_ABORTED 404 (Wappler: Not Found)


<p class="font-weight-5">test</p>

.font-weight-5 { font-family: SFRounded-Bold;}

@font-face {
    font-family: "SFRounded-Bold";
    src: local("SFRounded Bold"), local("SFRounded-Bold"), url("assets/typeface/SFRounded-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

Community Page
Last updated: