Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-08-2011, 10:08 PM   PM User | #1
Jimather
New Coder

 
Join Date: Jan 2011
Posts: 66
Thanks: 10
Thanked 5 Times in 5 Posts
Jimather is an unknown quantity at this point
Custom Fonts Problem

I have a problem with custom fonts. It worked fine in chrome,firefox and IE on the localhost, but when uploaded and the site is viewed live, chrome and firefox switch to default fonts, however IE displays the custom font perfectly.

I have this code in my style sheet:

Code:
@font-face 
{
	font-family: Gill Sans;
	src: url('fonts/GIL_____.eot');
	src: local(GIL_____), url('fonts/GIL_____.ttf') format('opentype');
}
the font files are in the relative server directory

I have tried various combinations of positions of the file in the directory structure but none of it works.

I have also tried defining the font-family internally but to no avail.

You can view the site here, it is only about 15% complete and I have uploaded it to a another folder on a domain I already have another website on just for testing purpose's, (could this be part of the issue?)
Jimather is offline   Reply With Quote
Old 02-08-2011, 11:07 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,703
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Somewhere I read that you shouldn’t use the “local” rule but replace it with some other character. Ah, here it was: http://paulirish.com/2010/font-face-gotchas/#smiley

May this be the reason?

Oh and I hope you have the license to embed the Gill Sans font with that method? If I may cite Monotype’s EULA:
Quote:
Originally Posted by http://www.fonthaus.com/fonts/monotypeimaging/miadobe-gill-sans/mi-000423120/eula

12. You may electronically distribute Font Software embedded in a "Personal or Internal Business Use" document (that is, a document other than a "Commercial Product" as defined herein) only when the Font Software embedded in such document (i) is in a static graphic image (for example, a "gif") or an embedded electronic document, and (ii) is distributed in a secure format that permits only the viewing and printing (and not the editing, altering, enhancing, or modifying) of such static graphic image or embedded document. You may not embed Font Software in a Commercial Product without a separate written license from MTI, and you may not embed Font Software in an electronic document or data file for any reason other than your own Personal or Internal Business Use.
Don’t get yourself into trouble, young Padawan.
__________________
Don’t click this link!

Last edited by VIPStephan; 02-08-2011 at 11:12 PM..
VIPStephan is offline   Reply With Quote
Old 02-08-2011, 11:41 PM   PM User | #3
Jimather
New Coder

 
Join Date: Jan 2011
Posts: 66
Thanks: 10
Thanked 5 Times in 5 Posts
Jimather is an unknown quantity at this point
Quote:
Originally Posted by VIPStephan View Post
Somewhere I read that you shouldn’t use the “local” rule but replace it with some other character. Ah, here it was: http://paulirish.com/2010/font-face-gotchas/#smiley

May this be the reason?

Oh and I hope you have the license to embed the Gill Sans font with that method? If I may cite Monotype’s EULA:


Don’t get yourself into trouble, young Padawan.
Thankyou for the reply but the smiley face made no difference.

You are correct about the license yes, I will email them and request permission.
Jimather is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:26 AM.


Advertisement
Log in to turn off these ads.