unplugin-fonts icon indicating copy to clipboard operation
unplugin-fonts copied to clipboard

[Bug]: SvelteKit example doesn't build

Open heshdotcc opened this issue 2 years ago • 3 comments

How to reproduce

Running pnpm run build complains about Error: Not found: /src/assets/fonts/DancingScript-Bold.ttf

heshdotcc avatar Jul 22 '23 23:07 heshdotcc

Hello @heshdotcc! Thanks for opening this issue, we will get back to you soon! Until then, feel free to join us on discord

If you love our work, please consider sponsoring us

cssninjastudio[bot] avatar Jul 22 '23 23:07 cssninjastudio[bot]

Specifying the source path of custom font as asset/fonts/DancingScript* seems to fix building script, but ends with a build that doesn't render the font.

heshdotcc avatar Jul 24 '23 00:07 heshdotcc

Hello @heshdotcc

Did you import the virtual font import ?

import 'unfonts.css'

stafyniaksacha avatar Jul 24 '23 12:07 stafyniaksacha