Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    66
    Thanks
    10
    Thanked 5 Times in 5 Posts

    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?)

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,485
    Thanks
    6
    Thanked 981 Times in 954 Posts
    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.
    Last edited by VIPStephan; 02-08-2011 at 11:12 PM.

  • #3
    New Coder
    Join Date
    Jan 2011
    Posts
    66
    Thanks
    10
    Thanked 5 Times in 5 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •