Shopify CDN delivering invalid font files

Topic summary

A Shopify store owner is experiencing an issue where custom font files uploaded to Shopify’s CDN are being delivered as corrupted/invalid files to browsers.

The Problem:

  • Custom font file (GascogneSXLR.ttf) works correctly before upload to Shopify Assets
  • After uploading, the CDN-delivered file cannot be opened and triggers “not a valid font file” errors
  • The issue can be reproduced by downloading the font file from the live site via browser developer tools

Evidence Provided:

  • Screenshots showing the corrupted file error when attempting to open the downloaded font
  • Comparison with how a valid TTF file preview should appear on Windows

Current Status:

  • The user is considering hosting font files externally as the only remaining solution
  • No resolution has been reached; the thread appears to be seeking help from the community to resolve this CDN delivery issue
Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

I’m struggling to get a custom font to work in Shopify, following all recommendations.

Shopify CDN delivering a font file incorrectly.

Proof of issue:

  1. Visit: https://madamvirtue.com.au/
  2. Open developer tools
  3. Go to the Network tab
  4. Find and Download file “GascogneSXLR.ttf”
  5. Open that file in your system (you will notice an error saying that it’s not a valid font file)

ChrisMerlin_0-1715961006558.png

Note:

  • The font file uploaded to Shopify Assets is valid. It works fine before the upload.

My only option now is to host these font files elsewhere?? :cry:

When opening the TTF file, a preview should look something like this (on Windows)