Annin
How to load fonts in /static?
Using Fresh with tailwind
By doing
and
It shows the font on
localhost
when running deno task start
, but not on the actual site.
Browser console shows
downloadable font: download failed (font-family: "MyFont" style:normal weight:400 stretch:100 src index:0): status=2147746065 source: https://mysite.deno.dev/MyFont-Regular.woff2
GET https://mysite.deno.dev/MyFont-Regular.woff2
returns 404
css and font file are both just in /static
Let me know if there's other info I should provide, thanks in advance6 replies