Hello,
I have a site that I designed and recently began having hosted. While the intended font is displaying on my computer, I'm concerned that's because I already have it loaded locally. A friend is checking things on his end with a Mac using Safari, and he's not getting the right font - I chose Century Gothic, and he's seeing Apple Gothic.
When I wrote the pages locally, I was using the following @font-face code:
Code:@font-face { font-family: 'Century Gothic'; src: url('../webfonts/CenturyGothic.eot'); src: local(☺), url('../Fonts/CenturyGothic.woff') format('woff'), url('../Fonts/CenturyGothic.ttf') format('truetype'), url('../Fonts/CenturyGothic.svg') format('svg'); }
Since having the site "live", I've experimented with the @font-face on one page only, and still can't get it to work. After trying probably a dozen variations, I last left the page with this code:
...that last code is untested/checked by my friend, though at this point I'm skeptical that it will work. Which leads me to posting this thread here.Code:@font-face { font-family: 'Century Gothic'; src: url('Fonts/CenturyGothic.eot?'); src: local(☺), url('Fonts/CenturyGothic.woff') format('woff'), url('Fonts/CenturyGothic.ttf') format('truetype'), url('Fonts/CenturyGothic.svg#CenturyGothic') format('svg'); }
I'm not sure if my code is bad, I have something placed incorrectly in the server/folders/etc., or all of the above (and possibly other issues). I ended up not only having a "Fonts" folder with a file for each above filetype in the root/main public folder, but also copied this fonts folder into each other page's folder that makes up the site.
In addition, the reason for the ? in the eot file code is I'm having the site render as IE8 in even IE9 and IE10 browsers (due to an unrelated issue). It was my understanding some older versions of IE need the ? in there for the @font-face to work in them.
I don't know if it matters re my issues, but I have held off on licensing the files for this until I get things working and finished on the site. While it's hosted, it is password protected from the public until I'm ready for that to be. I was going to license the font before going live...
If possible, I greatly prefer not to publicly post a link to my site for now. If anyone here is nice enough to help and needs to see the site to do so, please let me know and I'll PM (or e-mail) you the information to be able to do so...
Thank you!
Martin



Reply With Quote

Bookmarks