Skip to content

How to get @font-face rules to work? #507

Answered by edemond
edemond asked this question in Answered
Discussion options

You must be logged in to vote

Solved it; the font file has to be in /public, which I did not know about.

For example, with /public/FontFile.woff2, then the @font-face rule should point to url("FontFile.woff2"), and no @asset directive is needed.

I might open a PR for the docs on this—it'd be useful for people who failed to read about the public dir like me :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sija
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant