Skip to content

Loading fonts from filesystem #2334

Answered by Blakeinstein
smolck asked this question in Q&A
Discussion options

You must be logged in to vote

I know its been a while since you got a response but you can use url() with whatever you are using to bundle your webpage.
something like vite would allow you to copy those assets to the build directory. Tauri will include those files too.
Something like this -> https://github.com/Blakeinstein/Bloop/blob/a0d4ec73a5b0938f2c4a01ff7e96a5bf39a8081e/src/web/index.html#L40

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by amrbashir
Comment options

You must be logged in to vote
2 replies
@mwritter
Comment options

@mwritter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants