Jump to content

Recommended Posts

I am having a problem with a webfont I got from Google. It only works in IE, which I found amusing.

 

Here is the CSS font-face declaration:

 

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


h1, h2, h3, h4, h5, h6 {
font-family: 'BerkshireSwash-Regular', 'Times New Roman', serif;
text-align: center;
}

 

I checked it in the newest version of the top five browsers: Opera, FF, IE, Chrome, and Safari. As I said, IE is the only one that's correctly interpreting the font files. I have all the sources uploaded to my server as well, eot, ttf, woff, ttf, and svg. I also made sure to add all the MIME types to my .htaccess. 

 

AddType "application/vnd.ms-fontobject" .eot
AddType "application/x-font-opentype" .otf
AddType "application/x-font-truetype" .ttf
AddType "application/x-font-ttf" .ttf
AddType "application/x-font-woff" .woff
AddType "image/svg+xml" .svg

 

Does anyone have any suggestions? Let me know if you need more information.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.