Drupal 7.23
CDN module 7.x-2.6
MaxCDN.com

The CDN functions normally for the web site, except for the @fontface embedded fonts. The following link gives instructions:

MaxCDN with webfonts

For the section starting with:

# ----------------------------------------------------------------------
# CORS-enabled images (@crossorigin)
# ----------------------------------------------------------------------

I copied and pasted these lines of code into several .htaccess files on my public shared web hosting provider, cleared cache and ran cron.

However, the @fontface and webfonts are still ignored.

Questions:
1. Where should the .htaccess file be located in the file directory structure?
2. Does the code in the MaxCDN link have to be modified in anyway for it to function for a particular web site?

Thanks,

Ted

Comments

TJM’s picture

Reconsidered.
I think I did not understand the purpose of the MaxCDN code for the fonts. The code applies to fonts that need to be accessed on another web site.

My issue is for fonts that are already on my Drupal sites. This is the file structure for the embedded fonts.

themes
---adaptivetheme
------at_admin
------at_core
------theme
---------css
------------fonts
--------------- font.eot
--------------- font.svg
--------------- font.ttf
--------------- font.woff

As soon as I disable the CDN module the embedded fonts display properly. As soon as I enable the CDN module the embedded fonts disappear.

Any clues would be appreciated,
Ted

Wim Leers’s picture

Status: Active » Fixed

If you enable the CDN module's "Far Future expiration" mode, you'll automatically get CORS.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.