bankai icon indicating copy to clipboard operation
bankai copied to clipboard

🐛 `Failed to decode downloaded font` for served CSS fonts

Open seangenabe opened this issue 6 years ago • 1 comments

🐛 bug report

Expected Behavior

Browsers should be able to decode fonts referred to by a CSS file.

Current Behavior

Warnings displayed on Chrome:

Failed to decode downloaded font: https://dew-glove.glitch.me/8253c766e445323b/MaterialIcons-Regular.woff2
OTS parsing error: invalid version tag

Font didn't render.

Font resource when clicked-through shows binary data in base64.

Possible Solution

Maybe the font shouldn't be served encoded in base64?

Context

Following the advice on #55 to load external stylesheets led me to this issue.

Code Sample

Glitch app Glitch project

Your Environment

Software Version(s)
Package 9.11.1
Runtime node 9.10.0
Package Manager npm 6.0.0
Operating System Windows 10

seangenabe avatar May 01 '18 14:05 seangenabe

Hmm, I don't see the font being served as base64 but instead get an HTML page from bankai. of course neither is correct :D

I think we need some sheetify plugin that puts the things used inside url()s in the correct place.

goto-bus-stop avatar May 03 '18 08:05 goto-bus-stop