Sorry to post this here, but I would like to file a bug in the admin area of Shopify - the issue is ignored in the community support forum and support can't or won't file a bug report on my behalf.
When uploading a WOFF2 font file to the 'assets' folder of a theme the file is corrupted. In my case the file size changes from 21KB to 39KB when served via asset_url
The browser console logs the following errors and the font fails to load.
Failed to decode downloaded font
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
When uploading the file to 'Content' > 'Files' and loading the file via file_url in the CSS, the font load correctly. ( So it's not a corrupt font file before uploading ).
I have seen this behavior too. Upload to files section or using the CLI/Github connection worked as expected.
Only see it while uploading it to theme directly
Sorry to post this here, but I would like to file a bug in the admin area of Shopify - the issue is ignored in the community support forum and support can't or won't file a bug report on my behalf.
When uploading a WOFF2 font file to the 'assets' folder of a theme the file is corrupted. In my case the file size changes from 21KB to 39KB when served via
asset_url
The browser console logs the following errors and the font fails to load.
When uploading the file to 'Content' > 'Files' and loading the file via
file_url
in the CSS, the font load correctly. ( So it's not a corrupt font file before uploading ).Other customers experiencing the same. https://community.shopify.com/c/technical-q-a/has-anyone-else-had-issues-with-corrupted-woff-or-woff2-files/m-p/1732103
Please advise on the correct channel to report bugs - as support is always a brick wall.