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

Failed to decode downloaded font #395

Closed
varHarrie opened this issue Jun 15, 2020 · 0 comments · Fixed by #398
Closed

Failed to decode downloaded font #395

varHarrie opened this issue Jun 15, 2020 · 0 comments · Fixed by #398

Comments

@varHarrie
Copy link

Describe the bug

<template>
  <div>
    <i class="ri-home-line"></i>
    <i class="fas fa-home"></i>
  </div>
</template>

<script>
import "remixicon/fonts/remixicon.css";
import "@fortawesome/fontawesome-free/css/all.css";

export default {
  name: "App",
};
</script>

And I got console warning:

Failed to decode downloaded font: <URL>
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.woff2?t=1590207869815
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.woff?t=1590207869815
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf
(index):1 Failed to decode downloaded font: http://localhost:3000/@modules/remixicon/fonts/remixicon.ttf?t=1590207869815
(index):1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
(index):1 OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size
2(index):1 OTS parsing error: incorrect file size in WOFF header
2(index):1 OTS parsing error: incorrect entrySelector for table directory

Reproduction

https://github.com/varHarrie/vite-font-issue

System Info

  • required vite version: 0.20.8
  • required Operating System: MacOS 10.14.6
  • required Node version: 14.4.0
  • yarn version: 1.22.4
  • vue version: 3.0.0-beta.15
  • @vue/compiler-sfc version: 3.0.0-beta.15
underfin added a commit to rolldown/vite that referenced this issue Jun 16, 2020
yyx990803 pushed a commit that referenced this issue Jun 18, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant