Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontaine does not process fonts attached via Fontsource #258

Open
Serator opened this issue Aug 11, 2023 · 1 comment
Open

Fontaine does not process fonts attached via Fontsource #258

Serator opened this issue Aug 11, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Serator
Copy link

Serator commented Aug 11, 2023

πŸ› The bug

When attaching fonts via Fontsource (4k stars on Github), a fallback font is added to font-family, but @font-face is not created for it.

πŸ› οΈ To reproduce

https://stackblitz.com/edit/github-xyllwv?file=index.css

🌈 Expected behaviour

The Roboto font in the demo should have a fallback font, but it doesn't.

ℹ️ Additional context

https://github.com/Serator/fontaine-with-fontsource - additional example with SvelteKit.

@Serator Serator added the bug Something isn't working label Aug 11, 2023
@EmeraldSnorlax
Copy link

EmeraldSnorlax commented Feb 13, 2024

want to add that this issue also seemingly applies to all fonts that get imported through npm packages: fontaine doesnt see the fonts at all -- that is, it doesn't even try to generate an "override" font

in my case, i'm importing fonts like this
https://github.com/EmeraldSnorlax/website/blob/ef0378d1a5ed69c45577e70ccbc986f9c23dbd2c/vite.config.ts
https://github.com/EmeraldSnorlax/website/blob/ef0378d1a5ed69c45577e70ccbc986f9c23dbd2c/src/routes/%2Blayout.svelte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants