Jump to content

Font Face URL


Guest

Recommended Posts

Hi everyone,

 

I've been having the same problem on FF and Safari with font-face URL and CDN for a while now with Prestashop.

 

It basically tries to load from this URL (and then the font is not loaded):

http://cdnurl.net/themes/customtheme/css/http://regularurl.net/themes/customtheme/fonts/sydsig.ttf?-aexv33

Here is the font face call in global.css:

@font-face {
    font-family: 'im_fell_dw_picaregular';
    src: url('../fonts/imfepirm28p-webfont.eot');
    src: url('../fonts/imfepirm28p-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/imfepirm28p-webfont.woff') format('woff'),
         url('../fonts/imfepirm28p-webfont.ttf') format('truetype'),
         url('../fonts/imfepirm28p-webfont.svg#im_fell_dw_picaregular') format('svg');
    font-weight: normal;
    font-style: normal;
 
}

I have tried these edits in the .htaccess file in public_html dir:

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff
 
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Edited by Guest (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...