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

presetWebFonts/bunny provider unreliable #2574

Closed
4 tasks done
lmeysel opened this issue May 5, 2023 · 1 comment · Fixed by #2766
Closed
4 tasks done

presetWebFonts/bunny provider unreliable #2574

lmeysel opened this issue May 5, 2023 · 1 comment · Fixed by #2766

Comments

@lmeysel
Copy link

lmeysel commented May 5, 2023

UnoCSS version

0.51.8

Describe the bug

When using bunny fonts provider in presetWebFonts in some cases the fonts are not downloaded. Switching to google works. As far as I can see it has something to do with the order and/or whitespaces.

Reproduction

The following works:

presetWebFonts({
  provider: 'bunny',
  fonts: {
    sans: ['Acme'],
    mono: ['Roboto Slab'],
  },
});

Switching the fonts, however does not work:

presetWebFonts({
  provider: 'bunny',
  fonts: {
    sans: ['Roboto Slab'],
    mono: ['Acme'],
  },
});

According to the devtools/Network traffic the Acme font is not downloaded, other than Roboto Slab.

System Info

Browser is Google Chrome 112.0.5615.138
Node 18.16.0

Validations

@stale
Copy link

stale bot commented Jul 9, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels Jul 9, 2023
@zyyv zyyv linked a pull request Jul 9, 2023 that will close this issue
@zyyv zyyv closed this as completed Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants